summaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/win32.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/libpq/win32.h')
-rw-r--r--src/interfaces/libpq/win32.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/interfaces/libpq/win32.h b/src/interfaces/libpq/win32.h
deleted file mode 100644
index bf6d01b7ca9..00000000000
--- a/src/interfaces/libpq/win32.h
+++ /dev/null
@@ -1,36 +0,0 @@
-#include <winsock.h>
-
-/*
- * 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
- */
-#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)
-#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
-
-/*
- * crypt not available (yet)
- */
-#define crypt(a,b) (a)
-
-#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 eno);