Merge remote-tracking branch 'remotes/IOMultiplexer/v2'
authorpk910 <philipp@zoelle1.de>
Tue, 15 Jul 2014 20:17:31 +0000 (22:17 +0200)
committerpk910 <philipp@zoelle1.de>
Tue, 15 Jul 2014 20:17:31 +0000 (22:17 +0200)
src/IOHandler/IOEngine_select.c
src/IOHandler/IOEngine_win32.c

index b725572067b32c213e5cd62894b1021a43710ec3..3c62c4c96e3dced7c8eda56c0bcc64c90a424cad 100644 (file)
 #include <string.h>
 #include <stdio.h>
 #ifdef WIN32
+#ifdef _WIN32_WINNT
+#undef _WIN32_WINNT
+#endif
 #define _WIN32_WINNT 0x501
-#include <windows.h>
 #include <winsock2.h>
+#include <windows.h>
 #elif defined HAVE_SYS_SELECT_H
 #include <sys/select.h>
 #endif
index 26ac0a64d6f484e38efeeb1112eb777d661cee18..0a0a7acf73c86a31ca2b4a6e0bcadf36cf95d5d7 100644 (file)
 #include "IOTimer.h"
 
 #ifdef WIN32
-
+#ifdef _WIN32_WINNT
+#undef _WIN32_WINNT
+#endif
 #define _WIN32_WINNT 0x501
-#include <windows.h>
 #include <winsock2.h>
+#include <windows.h>
 
 /* This is massively kludgy.  Unfortunately, the only performant I/O
  * multiplexer with halfway decent semantics under Windows is