1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#include <winsock.h>
/*
* strcasecmp() is not in Windows, stricmp is, though
*/
#define strcasecmp(a,b) stricmp(a,b)
#define NO_UNISTD_H
#define SOCKET_SIZE_TYPE int
/*
* 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"
|