mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-02 22:06:10 +00:00
Refactor BSD socket errors for Win32 and add EMSGSIZE
This commit is contained in:
@@ -42,18 +42,31 @@ extern in_port_t n3ds_udp_port;
|
|||||||
#endif
|
#endif
|
||||||
#define EINTR WSAEINTR
|
#define EINTR WSAEINTR
|
||||||
|
|
||||||
#ifdef __MINGW32__
|
#ifdef EWOULDBLOCK
|
||||||
#undef EWOULDBLOCK
|
#undef EWOULDBLOCK
|
||||||
|
#endif
|
||||||
|
#define EWOULDBLOCK WSAEWOULDBLOCK
|
||||||
|
|
||||||
|
#ifdef EINPROGRESS
|
||||||
#undef EINPROGRESS
|
#undef EINPROGRESS
|
||||||
|
#endif
|
||||||
|
#define EINPROGRESS WSAEINPROGRESS
|
||||||
|
|
||||||
|
#ifdef ETIMEDOUT
|
||||||
#undef ETIMEDOUT
|
#undef ETIMEDOUT
|
||||||
|
#endif
|
||||||
|
#define ETIMEDOUT WSAETIMEDOUT
|
||||||
|
|
||||||
|
#ifdef ECONNREFUSED
|
||||||
#undef ECONNREFUSED
|
#undef ECONNREFUSED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define EWOULDBLOCK WSAEWOULDBLOCK
|
|
||||||
#define EINPROGRESS WSAEINPROGRESS
|
|
||||||
#define ETIMEDOUT WSAETIMEDOUT
|
|
||||||
#define ECONNREFUSED WSAECONNREFUSED
|
#define ECONNREFUSED WSAECONNREFUSED
|
||||||
|
|
||||||
|
#ifdef EMSGSIZE
|
||||||
|
#undef EMSGSIZE
|
||||||
|
#endif
|
||||||
|
#define EMSGSIZE WSAEMSGSIZE
|
||||||
|
|
||||||
typedef int SOCK_RET;
|
typedef int SOCK_RET;
|
||||||
typedef int SOCKADDR_LEN;
|
typedef int SOCKADDR_LEN;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user