📄 socket.h
字号:
/* * $PostgreSQL: pgsql/src/include/port/win32/sys/socket.h,v 1.7 2006/10/04 00:30:10 momjian Exp $ */#ifndef WIN32_SYS_SOCKET_H#define 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. */#include <winsock2.h>#include <ws2tcpip.h>#undef ERROR#undef small/* Restore old ERROR value */#ifdef PGERROR#define ERROR PGERROR#endif/* * we can't use the windows gai_strerror{AW} functions because * they are defined inline in the MS header files. So we'll use our * own */#undef gai_strerror#endif /* WIN32_SYS_SOCKET_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -