Fix compile error on Windows
This commit is contained in:
parent
12a31f8442
commit
ac6412f4be
1 changed files with 2 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue