summaryrefslogtreecommitdiff
path: root/src/include/microhttpd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/microhttpd.h')
-rw-r--r--src/include/microhttpd.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 577ebc59..95087887 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -101,6 +101,13 @@ extern "C"
on platforms where they do not exist).
*/
#ifndef MHD_PLATFORM_H
+#if defined(_WIN32) && ! defined(__CYGWIN__) && \
+ ! defined(_CRT_DECLARE_NONSTDC_NAMES)
+#define _CRT_DECLARE_NONSTDC_NAMES 1
+#endif /* _WIN32 && ! __CYGWIN__ && ! _CRT_DECLARE_NONSTDC_NAMES */
+#include <stdarg.h>
+#include <stdint.h>
+#include <sys/types.h>
#if !defined(_WIN32) || defined(__CYGWIN__)
#include <unistd.h>
#include <sys/time.h>
@@ -114,9 +121,6 @@ extern "C"
typedef intptr_t ssize_t;
#endif /* !_SSIZE_T_DEFINED */
#endif /* _WIN32 && ! __CYGWIN__ */
-#include <stdarg.h>
-#include <stdint.h>
-#include <sys/types.h>
#endif
#if defined(__CYGWIN__) && !defined(_SYS_TYPES_FD_SET)