mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-15 14:38:10 +00:00
Fixed build issue with MinGW (#64)
This commit is contained in:
@@ -7,7 +7,11 @@
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <Windows.h>
|
||||
#include <wlanapi.h>
|
||||
#ifndef __MINGW32__
|
||||
#include <timeapi.h>
|
||||
#else
|
||||
#include <mmsystem.h>
|
||||
#endif
|
||||
#define SetLastSocketError(x) WSASetLastError(x)
|
||||
#define LastSocketError() WSAGetLastError()
|
||||
|
||||
@@ -23,6 +27,13 @@
|
||||
#endif
|
||||
#define EINTR WSAEINTR
|
||||
|
||||
#ifdef __MINGW32__
|
||||
#undef EWOULDBLOCK
|
||||
#undef EINPROGRESS
|
||||
#undef ETIMEDOUT
|
||||
#undef ECONNREFUSED
|
||||
#endif
|
||||
|
||||
#define EWOULDBLOCK WSAEWOULDBLOCK
|
||||
#define EINPROGRESS WSAEINPROGRESS
|
||||
#define ETIMEDOUT WSAETIMEDOUT
|
||||
|
||||
Reference in New Issue
Block a user