diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-03-04 11:40:08 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-03-04 11:40:08 +0100 |
commit | a7b255811e9d32d1f03f5f240d5818b180384607 (patch) | |
tree | 4ec709dddb144694f3352fe9093036db33f79a31 /src/include/microhttpd2.h | |
parent | f60a569e51224a9b6bb4de0c95fe8503d6951168 (diff) | |
download | libmicrohttpd-a7b255811e9d32d1f03f5f240d5818b180384607.tar.gz libmicrohttpd-a7b255811e9d32d1f03f5f240d5818b180384607.zip |
do not use MHD_NONNULL on w32
Diffstat (limited to 'src/include/microhttpd2.h')
-rw-r--r-- | src/include/microhttpd2.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/microhttpd2.h b/src/include/microhttpd2.h index 34a9a80a..063b2d98 100644 --- a/src/include/microhttpd2.h +++ b/src/include/microhttpd2.h | |||
@@ -274,8 +274,11 @@ typedef SOCKET MHD_socket; | |||
274 | * Macro to indicate that certain parameters must be | 274 | * Macro to indicate that certain parameters must be |
275 | * non-null. Todo: port to non-gcc platforms. | 275 | * non-null. Todo: port to non-gcc platforms. |
276 | */ | 276 | */ |
277 | #if defined(__CYGWIN__) || defined(_WIN32) || defined(MHD_W32LIB) | ||
278 | #define MHD_NONNULL(...) /* empty */ | ||
279 | #else | ||
277 | #define MHD_NONNULL(...) __THROW __nonnull((__VA_ARGS__)) | 280 | #define MHD_NONNULL(...) __THROW __nonnull((__VA_ARGS__)) |
278 | 281 | #endif | |
279 | 282 | ||
280 | /** | 283 | /** |
281 | * Not all architectures and `printf()`'s support the `long long` type. | 284 | * Not all architectures and `printf()`'s support the `long long` type. |