]> granicus.if.org Git - postgresql/blob - src/interfaces/libpq/win32.h
303fbd91ca643521b28feb06e541d5f09507d4a7
[postgresql] / src / interfaces / libpq / win32.h
1 #include <winsock.h>
2
3 /*
4  * strcasecmp() is not in Windows, stricmp is, though
5  */
6 #define strcasecmp(a,b) stricmp(a,b)
7
8 #define SOCKET_SIZE_TYPE int
9
10 /*
11  * Some compat functions
12  */
13 #define open(a,b,c) _open(a,b,c)
14 #define read(a,b,c) _read(a,b,c)
15 #define write(a,b,c) _write(a,b,c)
16
17
18 /*
19  * crypt not available (yet)
20  */
21 #define crypt(a,b) a
22
23
24
25 /*
26  * Parts of config.h that you get with autoconf on other systems
27  */
28
29 #define DEF_PGPORT "5432"
30 #define BLCKSZ 8192
31 #define MAXIMUM_ALIGNOF 4
32