Define winnt or greater on mingw32 to take advantage of get*info().

This commit is contained in:
Avuton Olrich 2010-03-21 18:27:29 -07:00
parent 4953ea90c2
commit 68ece2fef3
2 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,7 @@
#include <assert.h>
#ifdef WIN32
#define WINVER 0x0501
#include <ws2tcpip.h>
#include <winsock.h>
#else

View File

@ -28,6 +28,7 @@
#include <sys/socket.h>
#include <netdb.h>
#else /* G_OS_WIN32 */
#define WINVER 0x0501
#include <ws2tcpip.h>
#include <winsock.h>
#endif /* G_OS_WIN32 */