1
0
Fork 0

(svn r20030) -Fix: MSVC 2010 defines more POSIX error constants that we define as well.

release/1.1
michi_cc 2010-06-28 18:14:00 +00:00
parent 0599cb67ce
commit 22357624ff
1 changed files with 2 additions and 0 deletions

View File

@ -22,11 +22,13 @@
/* Windows stuff */
#if defined(WIN32) || defined(WIN64)
#include <errno.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#include <windows.h>
#define GET_LAST_ERROR() WSAGetLastError()
#undef EWOULDBLOCK
#define EWOULDBLOCK WSAEWOULDBLOCK
/* Windows has some different names for some types */
typedef unsigned long in_addr_t;