Add _WIN32_WINNT definition to Avoid Windows Compilation Errors

the line #define _WIN32_WINNT 0x0501 will cause ws2tcpip.h to implement the missing functions freeaddrinfo, getaddrinfo and getnameinfo on windows
This commit is contained in:
rmalizia44
2016-01-28 03:28:05 -02:00
parent c165e50193
commit be2ec608e2
+2
View File
@@ -5,6 +5,8 @@
*/
#ifdef _WIN32
#define _WIN32_WINNT 0x0501
#include <winsock2.h>
#include <ws2tcpip.h>
#include <windows.h>