| /* | |
| * src/include/port/win32/sys/socket.h | |
| */ | |
| /* | |
| * Unfortunately, <wingdi.h> of VC++ also defines ERROR. | |
| * To avoid the conflict, we include <windows.h> here and undefine ERROR | |
| * immediately. | |
| * | |
| * Note: Don't include <wingdi.h> directly. It causes compile errors. | |
| */ | |
| /* Restore old ERROR value */ | |
| /* | |
| * 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. | |
| */ | |
| extern const char *gai_strerror(int ecode); | |