win32.h

来自「PostgreSQL7.4.6 for Linux」· C头文件 代码 · 共 43 行

H
43
字号
#ifndef __win32_h_included#define __win32_h_included/* * strcasecmp() is not in Windows, stricmp is, though */#define strcasecmp(a,b) stricmp(a,b)#define strncasecmp(a,b,c) _strnicmp(a,b,c)/* * Some other compat functions */#ifdef __BORLANDC__#define _timeb timeb#define _ftime(a) ftime(a)#define _strnicmp(a,b,c) strnicmp(a,b,c)#define _errno errno#else#define open(a,b,c) _open(a,b,c)#define close(a) _close(a)#define read(a,b,c) _read(a,b,c)#define write(a,b,c) _write(a,b,c)#endif#define popen(a,b) _popen(a,b)#define pclose(a) _pclose(a)#define vsnprintf(a,b,c,d) _vsnprintf(a,b,c,d)#define snprintf _snprintf#undef EAGAIN					/* doesn't apply on sockets */#undef EINTR#define EINTR WSAEINTR#define EWOULDBLOCK WSAEWOULDBLOCK#define ECONNRESET WSAECONNRESET#define EINPROGRESS WSAEINPROGRESS/* * support for handling Windows Socket errors */extern const char *winsock_strerror(int err, char *strerrbuf, size_t buflen);#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?