/* * src/include/port/win32/sys/socket.h */ #ifndef WIN32_SYS_SOCKET_H #define WIN32_SYS_SOCKET_H /* * Unfortunately, of VC++ also defines ERROR. * To avoid the conflict, we include here and undefine ERROR * immediately. * * Note: Don't include directly. It causes compile errors. */ #include #include #include #undef ERROR #undef small /* Restore old ERROR value */ #ifdef PGERROR #define ERROR PGERROR #endif /* * We don't use the Windows gai_strerror[A] function because it is not * thread-safe. We define our own in src/port/win32gai_strerror.c. */ #undef gai_strerror extern const char *gai_strerror(int ecode); #endif /* WIN32_SYS_SOCKET_H */