Fix a windows compilation warning in socket module (#538)
This commit is contained in:
parent
879b061bc8
commit
e0ca2c967c
|
@ -15,8 +15,8 @@
|
|||
#include <amtl/am-string.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
#include <WinSock2.h>
|
||||
#include <WS2tcpip.h>
|
||||
|
||||
#undef errno
|
||||
#undef close
|
||||
|
@ -24,6 +24,9 @@
|
|||
#define errno WSAGetLastError()
|
||||
#define close(sockfd) closesocket(sockfd)
|
||||
|
||||
#undef EINPROGRESS
|
||||
#undef EWOULDBLOCK
|
||||
|
||||
#define EINPROGRESS WSAEINPROGRESS
|
||||
#define EWOULDBLOCK WSAEWOULDBLOCK
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue
Block a user