diff options
Diffstat (limited to 'src/interfaces/libpq/win32.h')
-rw-r--r-- | src/interfaces/libpq/win32.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/interfaces/libpq/win32.h b/src/interfaces/libpq/win32.h new file mode 100644 index 00000000000..878c7afbd4b --- /dev/null +++ b/src/interfaces/libpq/win32.h @@ -0,0 +1,35 @@ +#include <winsock.h> + +/* + * strcasecmp() is not in Windows, stricmp is, though + */ +#define strcasecmp(a,b) stricmp(a,b) + + + +#define NO_UNISTD_H + + +/* + * Some compat functions + */ +#define open(a,b,c) _open(a,b,c) +#define read(a,b,c) _read(a,b,c) +#define write(a,b,c) _write(a,b,c) + + +/* + * crypt not available (yet) + */ +#define crypt(a,b) a + + + +/* + * Parts of config.h that you get with autoconf on other systems + */ + +/* + * Default port to connect to + */ +#define DEF_PGPORT "5432" |