commit eb731135bbdd83f1d1ca5733cb39f29731661562
parent c2a8933a7e192fca3c033c9ece1727d0498f5a23
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Wed, 21 Jul 2021 22:42:01 +0300
mhd_str.h: fixed compilation with MSVC
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/microhttpd/mhd_str.h b/src/microhttpd/mhd_str.h
@@ -34,6 +34,11 @@
#include <stdbool.h>
#endif /* HAVE_STDBOOL_H */
+#if defined(_MSC_FULL_VER) && ! defined (_SSIZE_T_DEFINED)
+#define _SSIZE_T_DEFINED
+typedef intptr_t ssize_t;
+#endif /* !_SSIZE_T_DEFINED */
+
#ifdef MHD_FAVOR_SMALL_CODE
#include "mhd_limits.h"
#endif /* MHD_FAVOR_SMALL_CODE */