Commit be2ec608 authored by rmalizia44's avatar rmalizia44

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
parent c165e501
......@@ -5,6 +5,8 @@
*/
#ifdef _WIN32
#define _WIN32_WINNT 0x0501
#include <winsock2.h>
#include <ws2tcpip.h>
#include <windows.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment