Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
socket.h35 linesDownload Raw Back to sys
1/*2 * src/include/port/win32/sys/socket.h3 */4#ifndef WIN32_SYS_SOCKET_H5#define WIN32_SYS_SOCKET_H6 7/*8 * Unfortunately, <wingdi.h> of VC++ also defines ERROR.9 * To avoid the conflict, we include <windows.h> here and undefine ERROR10 * immediately.11 *12 * Note: Don't include <wingdi.h> directly.  It causes compile errors.13 */14#include <winsock2.h>15#include <ws2tcpip.h>16#include <windows.h>17 18#undef ERROR19#undef small20 21/* Restore old ERROR value */22#ifdef PGERROR23#define ERROR PGERROR24#endif25 26/*27 * We don't use the Windows gai_strerror[A] function because it is not28 * thread-safe.  We define our own in src/port/win32gai_strerror.c.29 */30#undef gai_strerror31 32extern const char *gai_strerror(int ecode);33 34#endif							/* WIN32_SYS_SOCKET_H */35 
codekingpro/portable-devtools · Team Ai