commit a7b255811e9d32d1f03f5f240d5818b180384607
parent f60a569e51224a9b6bb4de0c95fe8503d6951168
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 4 Mar 2018 11:40:08 +0100
do not use MHD_NONNULL on w32
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/include/microhttpd2.h b/src/include/microhttpd2.h
@@ -274,8 +274,11 @@ typedef SOCKET MHD_socket;
* Macro to indicate that certain parameters must be
* non-null. Todo: port to non-gcc platforms.
*/
+#if defined(__CYGWIN__) || defined(_WIN32) || defined(MHD_W32LIB)
+#define MHD_NONNULL(...) /* empty */
+#else
#define MHD_NONNULL(...) __THROW __nonnull((__VA_ARGS__))
-
+#endif
/**
* Not all architectures and `printf()`'s support the `long long` type.