Fix compile error on Windows

This commit is contained in:
Cameron Gutman 2014-02-02 05:05:52 -05:00
parent 12a31f8442
commit ac6412f4be

View File

@ -7,11 +7,13 @@
#define SetLastSocketError(x) WSASetLastError(x) #define SetLastSocketError(x) WSASetLastError(x)
#define LastSocketError() WSAGetLastError() #define LastSocketError() WSAGetLastError()
#ifdef LC_WINDOWS_PHONE
#undef WINAPI_FAMILY #undef WINAPI_FAMILY
#define WINAPI_FAMILY WINAPI_FAMILY_DESKTOP_APP #define WINAPI_FAMILY WINAPI_FAMILY_DESKTOP_APP
#include <WinSock2.h> #include <WinSock2.h>
#undef WINAPI_FAMILY #undef WINAPI_FAMILY
#define WINAPI_FAMILY WINAPI_FAMILY_PHONE_APP #define WINAPI_FAMILY WINAPI_FAMILY_PHONE_APP
#endif
#else #else
#include <sys/types.h> #include <sys/types.h>