]> granicus.if.org Git - postgresql/blob - src/include/pg_config.h.win32
Create the planner mechanism for optimizing simple MIN and MAX queries
[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.1.0"
7 #define PG_VERSION_STR "8.1.0 (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 /* use _snprintf instead of snprintf */
27 #define HAVE_DECL_SNPRINTF 1
28 #define snprintf        _snprintf
29
30 /* defines for dynamic linking on Win32 platform */
31 #ifdef __CYGWIN__
32
33 #if __GNUC__ && ! defined (__declspec)
34 #error You need egcs 1.1 or newer for compiling!
35 #endif
36
37 #ifdef BUILDING_DLL
38 #define DLLIMPORT __declspec (dllexport)
39 #else                                                   /* not BUILDING_DLL */
40 #define DLLIMPORT __declspec (dllimport)
41 #endif
42
43 #elif defined(WIN32) && defined(_MSC_VER)               /* not CYGWIN */
44
45 #if defined(_DLL)
46 #define DLLIMPORT __declspec (dllexport)
47 #else                                                   /* not _DLL */
48 #define DLLIMPORT __declspec (dllimport)
49 #endif
50
51 #else                                                   /* not CYGWIN, not MSVC */
52
53 #define DLLIMPORT
54
55 #endif
56
57 #ifndef __CYGWIN__
58 #include <windows.h>
59 #endif
60
61 #endif /* pg_config_h_win32__ */