]> granicus.if.org Git - postgresql/blob - src/include/pg_config.h.win32
Make Win32 build use our port/snprintf.c routines, instead of depending
[postgresql] / src / include / pg_config.h.win32
1 #ifndef pg_config_h_win32__
2 #define pg_config_h_win32__
3 /*
4  * Parts of pg_config.h that you get with autoconf on other systems
5  */
6 #define PG_VERSION "8.2devel"
7 #define PG_VERSION_STR "8.2devel (win32)"
8
9 #define DEF_PGPORT 5432
10 #define DEF_PGPORT_STR "5432"
11
12 #define MAXIMUM_ALIGNOF 4
13 #define ACCEPT_TYPE_ARG3 int
14
15 #define MAXPGPATH 1024
16
17 #define INDEX_MAX_KEYS 32
18
19 #define HAVE_ATEXIT
20 #define HAVE_MEMMOVE
21
22 #ifdef __BORLANDC__
23 #define HAVE_RANDOM
24 #endif
25
26 /* defines for dynamic linking on Win32 platform */
27 #ifdef __CYGWIN__
28
29 #if __GNUC__ && ! defined (__declspec)
30 #error You need egcs 1.1 or newer for compiling!
31 #endif
32
33 #ifdef BUILDING_DLL
34 #define DLLIMPORT __declspec (dllexport)
35 #else                                                   /* not BUILDING_DLL */
36 #define DLLIMPORT __declspec (dllimport)
37 #endif
38
39 #elif defined(WIN32) && defined(_MSC_VER)               /* not CYGWIN */
40
41 #if defined(_DLL)
42 #define DLLIMPORT __declspec (dllexport)
43 #else                                                   /* not _DLL */
44 #define DLLIMPORT __declspec (dllimport)
45 #endif
46
47 #else                                                   /* not CYGWIN, not MSVC */
48
49 #define DLLIMPORT
50
51 #endif
52
53 #ifndef __CYGWIN__
54 #include <windows.h>
55 #endif
56
57 #endif /* pg_config_h_win32__ */