[IOMultiplexerV2] fixed compiling issue with newer MinGW builds...
[IOMultiplexer.git] / src / IOHandler / IODNSEngine_default.c
index b8189272c7b8c7ed838f1fbb082dfdbb996f5f9d..f27ef94d3dff4d98cfddd16441a8fb740cd6c663 100644 (file)
 #include "IODNSLookup.h"
 
 #ifdef WIN32
+#ifdef _WIN32_WINNT
+#undef _WIN32_WINNT
+#endif
 #define _WIN32_WINNT 0x501
-#include <windows.h>
 #include <winsock2.h>
+#include <windows.h>
 #include <ws2tcpip.h>
 #else
 #include <sys/types.h>