roken: unbreak Windows build

This commit is contained in:
Luke Howard
2021-12-21 08:15:17 +11:00
parent fe095aa1c0
commit 2bb85f61e9
2 changed files with 2 additions and 18 deletions

View File

@@ -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.h>
ROKEN_LIB_FUNCTION ssize_t ROKEN_LIB_CALL
parse_bytes(const char *s, const char *def_unit);