From 2bb85f61e9751f16f9d8667b9e2d7748d68f2111 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Tue, 21 Dec 2021 08:15:17 +1100 Subject: [PATCH] roken: unbreak Windows build --- lib/roken/parse_bytes.h | 10 +--------- lib/roken/parse_time.h | 10 +--------- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/lib/roken/parse_bytes.h b/lib/roken/parse_bytes.h index c043618ba..b7eea2b0d 100644 --- a/lib/roken/parse_bytes.h +++ b/lib/roken/parse_bytes.h @@ -36,15 +36,7 @@ #ifndef __PARSE_BYTES_H__ #define __PARSE_BYTES_H__ -#ifndef ROKEN_LIB_FUNCTION -#ifdef _WIN32 -#define ROKEN_LIB_FUNCTION -#define ROKEN_LIB_CALL __cdecl -#else -#define ROKEN_LIB_FUNCTION -#define ROKEN_LIB_CALL -#endif -#endif +#include ROKEN_LIB_FUNCTION ssize_t ROKEN_LIB_CALL parse_bytes(const char *s, const char *def_unit); diff --git a/lib/roken/parse_time.h b/lib/roken/parse_time.h index 7de18c717..c0f08f956 100644 --- a/lib/roken/parse_time.h +++ b/lib/roken/parse_time.h @@ -36,15 +36,7 @@ #ifndef __PARSE_TIME_H__ #define __PARSE_TIME_H__ -#ifndef ROKEN_LIB_FUNCTION -#ifdef _WIN32 -#define ROKEN_LIB_FUNCTION -#define ROKEN_LIB_CALL __cdecl -#else -#define ROKEN_LIB_FUNCTION -#define ROKEN_LIB_CALL -#endif -#endif +#include ROKEN_LIB_FUNCTION int64_t ROKEN_LIB_CALL parse_time (const char *s, const char *def_unit);