2008-05-17 03:28:26 +02:00
|
|
|
/*
|
2010-09-20 22:08:53 +02:00
|
|
|
* src/interfaces/libpq/win32.h
|
2008-05-17 03:28:26 +02:00
|
|
|
*/
|
2002-07-20 07:43:31 +02:00
|
|
|
#ifndef __win32_h_included
|
|
|
|
#define __win32_h_included
|
1998-07-03 06:24:16 +02:00
|
|
|
|
|
|
|
/*
|
2004-05-07 02:24:59 +02:00
|
|
|
* Some compatibility functions
|
1998-07-03 06:24:16 +02:00
|
|
|
*/
|
2017-04-11 15:14:26 +02:00
|
|
|
|
2004-03-24 04:54:16 +01:00
|
|
|
/* open provided elsewhere */
|
2000-02-08 00:10:11 +01:00
|
|
|
#define close(a) _close(a)
|
1998-07-03 06:24:16 +02:00
|
|
|
#define read(a,b,c) _read(a,b,c)
|
|
|
|
#define write(a,b,c) _write(a,b,c)
|
2002-12-30 22:07:26 +01:00
|
|
|
|
2001-08-04 00:11:39 +02:00
|
|
|
#undef EAGAIN /* doesn't apply on sockets */
|
2001-08-21 22:39:54 +02:00
|
|
|
|
|
|
|
/*
|
2001-11-28 20:40:29 +01:00
|
|
|
* support for handling Windows Socket errors
|
2001-08-21 22:39:54 +02:00
|
|
|
*/
|
2003-06-14 19:49:54 +02:00
|
|
|
extern const char *winsock_strerror(int err, char *strerrbuf, size_t buflen);
|
2002-07-20 07:43:31 +02:00
|
|
|
|
|
|
|
#endif
|