src/interfaces/libpq/win32.h
raw| 1 | /* |
| 2 | * src/interfaces/libpq/win32.h |
| 3 | */ |
| 4 | #ifndef __win32_h_included |
| 5 | #define __win32_h_included |
| 6 | |
| 7 | /* |
| 8 | * Some compatibility functions |
| 9 | */ |
| 10 | |
| 11 | /* open provided elsewhere */ |
| 12 | #define close(a) _close(a) |
| 13 | #define read(a,b,c) _read(a,b,c) |
| 14 | #define write(a,b,c) _write(a,b,c) |
| 15 | |
| 16 | #undef EAGAIN /* doesn't apply on sockets */ |
| 17 | |
| 18 | /* |
| 19 | * support for handling Windows Socket errors |
| 20 | */ |
| 21 | extern const char *winsock_strerror(int err, char *strerrbuf, size_t buflen); |
| 22 | |
| 23 | #endif |