From ab6c81b960e86b26c7fda366f51ff29d1683a555 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Tue, 24 May 2016 16:16:36 +0200 Subject: config: Add SSIZE_T compat for Win32 --- src/config.h.in | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/config.h.in') diff --git a/src/config.h.in b/src/config.h.in index de1a4dd..0f72d6a 100644 --- a/src/config.h.in +++ b/src/config.h.in @@ -69,6 +69,14 @@ CMARK_INLINE int c99_snprintf(char *outBuf, size_t size, const char *format, ... #endif +#ifdef _WIN32 +# include + typedef SSIZE_T ssize_t; + typedef SIZE_T size_t; +#else +# include +#endif + #ifdef __cplusplus } #endif -- cgit v1.2.3