mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-09 01:06:28 +00:00
Fix compile error on Windows
This commit is contained in:
@@ -7,11 +7,13 @@
|
||||
#define SetLastSocketError(x) WSASetLastError(x)
|
||||
#define LastSocketError() WSAGetLastError()
|
||||
|
||||
#ifdef LC_WINDOWS_PHONE
|
||||
#undef WINAPI_FAMILY
|
||||
#define WINAPI_FAMILY WINAPI_FAMILY_DESKTOP_APP
|
||||
#include <WinSock2.h>
|
||||
#undef WINAPI_FAMILY
|
||||
#define WINAPI_FAMILY WINAPI_FAMILY_PHONE_APP
|
||||
#endif
|
||||
|
||||
#else
|
||||
#include <sys/types.h>
|
||||
|
||||
Reference in New Issue
Block a user