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>
|
#include <amtl/am-string.h>
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <winsock2.h>
|
#include <WinSock2.h>
|
||||||
#include <ws2tcpip.h>
|
#include <WS2tcpip.h>
|
||||||
|
|
||||||
#undef errno
|
#undef errno
|
||||||
#undef close
|
#undef close
|
||||||
|
@ -24,6 +24,9 @@
|
||||||
#define errno WSAGetLastError()
|
#define errno WSAGetLastError()
|
||||||
#define close(sockfd) closesocket(sockfd)
|
#define close(sockfd) closesocket(sockfd)
|
||||||
|
|
||||||
|
#undef EINPROGRESS
|
||||||
|
#undef EWOULDBLOCK
|
||||||
|
|
||||||
#define EINPROGRESS WSAEINPROGRESS
|
#define EINPROGRESS WSAEINPROGRESS
|
||||||
#define EWOULDBLOCK WSAEWOULDBLOCK
|
#define EWOULDBLOCK WSAEWOULDBLOCK
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user