mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
This removes the support for building just libpq using Borland C++ or Visual C++. This has not worked properly for years, and given the number of complaints it's clearly not worth the maintenance burden. Building libpq using the standard MSVC build system is of course still supported, along with mingw.
35 lines
668 B
C
35 lines
668 B
C
/*
|
|
* src/interfaces/libpq/win32.h
|
|
*/
|
|
#ifndef __win32_h_included
|
|
#define __win32_h_included
|
|
|
|
/*
|
|
* Some compatibility functions
|
|
*/
|
|
|
|
/* open provided elsewhere */
|
|
#define close(a) _close(a)
|
|
#define read(a,b,c) _read(a,b,c)
|
|
#define write(a,b,c) _write(a,b,c)
|
|
|
|
#undef EAGAIN /* doesn't apply on sockets */
|
|
#undef EINTR
|
|
#define EINTR WSAEINTR
|
|
#ifndef EWOULDBLOCK
|
|
#define EWOULDBLOCK WSAEWOULDBLOCK
|
|
#endif
|
|
#ifndef ECONNRESET
|
|
#define ECONNRESET WSAECONNRESET
|
|
#endif
|
|
#ifndef EINPROGRESS
|
|
#define EINPROGRESS WSAEINPROGRESS
|
|
#endif
|
|
|
|
/*
|
|
* support for handling Windows Socket errors
|
|
*/
|
|
extern const char *winsock_strerror(int err, char *strerrbuf, size_t buflen);
|
|
|
|
#endif
|