diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2015-05-07 17:04:22 +0000 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2015-05-07 17:04:22 +0000 |
commit | b44ee8055618e350032ba7a49c799d53dd551ee1 (patch) | |
tree | 57cf76dc6c19d483ae0c4afd2e2855c5ff87f52e /w32/VS2013 | |
parent | cb83913d0e1483c6e702b96047d073107be046e8 (diff) | |
download | libmicrohttpd-b44ee8055618e350032ba7a49c799d53dd551ee1.tar.gz libmicrohttpd-b44ee8055618e350032ba7a49c799d53dd551ee1.zip |
Define and use system-independent wrapper macro for poll()
Diffstat (limited to 'w32/VS2013')
-rw-r--r-- | w32/VS2013/MHD_config.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/w32/VS2013/MHD_config.h b/w32/VS2013/MHD_config.h index 7b94c43e..07f1fbbb 100644 --- a/w32/VS2013/MHD_config.h +++ b/w32/VS2013/MHD_config.h | |||
@@ -9,7 +9,6 @@ | |||
9 | /* Define if MS VC compiler is used */ | 9 | /* Define if MS VC compiler is used */ |
10 | #define MSVC 1 | 10 | #define MSVC 1 |
11 | 11 | ||
12 | |||
13 | /* *** MHD configuration *** */ | 12 | /* *** MHD configuration *** */ |
14 | /* Undef to disable feature */ | 13 | /* Undef to disable feature */ |
15 | 14 | ||
@@ -40,6 +39,16 @@ | |||
40 | /* define to use W32 threads */ | 39 | /* define to use W32 threads */ |
41 | #define MHD_USE_W32_THREADS 1 | 40 | #define MHD_USE_W32_THREADS 1 |
42 | 41 | ||
42 | #ifndef _WIN32_WINNT | ||
43 | /* MHD supports Windows XP and later W32 systems*/ | ||
44 | #define _WIN32_WINNT 0x0501 | ||
45 | #endif /* _WIN32_WINNT */ | ||
46 | |||
47 | /* winsock poll is available only on Vista and later */ | ||
48 | #if _WIN32_WINNT >= 0x0600 | ||
49 | #define HAVE_POLL 1 | ||
50 | #endif /* _WIN32_WINNT >= 0x0600 */ | ||
51 | |||
43 | /* define to 0 to disable epoll support */ | 52 | /* define to 0 to disable epoll support */ |
44 | #define EPOLL_SUPPORT 0 | 53 | #define EPOLL_SUPPORT 0 |
45 | 54 | ||