diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2014-04-01 06:16:04 +0000 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2014-04-01 06:16:04 +0000 |
commit | 60d4fbee43fdb6abb2f122017bdb0e084fa4a9c6 (patch) | |
tree | 35ae0402e7d59c1e1defec2836dc3c3f6333060a /src/include/platform.h | |
parent | 36394bd3bd84951b685f45ff105d256550619211 (diff) | |
download | libmicrohttpd-60d4fbee43fdb6abb2f122017bdb0e084fa4a9c6.tar.gz libmicrohttpd-60d4fbee43fdb6abb2f122017bdb0e084fa4a9c6.zip |
Implement wrapper macros for mutex manipulations, support W32 native mutex, require at least WinXP headers on W32
Diffstat (limited to 'src/include/platform.h')
-rw-r--r-- | src/include/platform.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/platform.h b/src/include/platform.h index 18d93b16..e97ab9f1 100644 --- a/src/include/platform.h +++ b/src/include/platform.h | |||
@@ -51,6 +51,16 @@ | |||
51 | #define _LP64 | 51 | #define _LP64 |
52 | #endif | 52 | #endif |
53 | 53 | ||
54 | #if defined(_WIN32) | ||
55 | #ifndef _WIN32_WINNT | ||
56 | #define _WIN32_WINNT 0x0501 | ||
57 | #else // _WIN32_WINNT | ||
58 | #if _WIN32_WINNT < 0x0501 | ||
59 | #error "Headers for Windows XP or later are required" | ||
60 | #endif // _WIN32_WINNT < 0x0501 | ||
61 | #endif // _WIN32_WINNT | ||
62 | #endif // _WIN32 | ||
63 | |||
54 | #include <stdio.h> | 64 | #include <stdio.h> |
55 | #include <stdlib.h> | 65 | #include <stdlib.h> |
56 | #include <stdint.h> | 66 | #include <stdint.h> |