pg_config.h.win32 1.09 KB
Newer Older
1 2
#ifndef	pg_config_h_win32__
#define	pg_config_h_win32__
3
/*
4
 * Parts of pg_config.h that you get with autoconf on other systems
5
 */
Tom Lane's avatar
Tom Lane committed
6 7
#define PG_VERSION "8.2devel"
#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 14
#define ACCEPT_TYPE_ARG3 int

15 16
#define MAXPGPATH 1024

17 18
#define INDEX_MAX_KEYS 32

19
#define HAVE_ATEXIT
20
#define HAVE_MEMMOVE
21

22 23 24 25
#ifdef __BORLANDC__
#define HAVE_RANDOM
#endif

26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
/* defines for dynamic linking on Win32 platform */
#ifdef __CYGWIN__

#if __GNUC__ && ! defined (__declspec)
#error You need egcs 1.1 or newer for compiling!
#endif

#ifdef BUILDING_DLL
#define DLLIMPORT __declspec (dllexport)
#else							/* not BUILDING_DLL */
#define DLLIMPORT __declspec (dllimport)
#endif

#elif defined(WIN32) && defined(_MSC_VER)		/* not CYGWIN */

#if defined(_DLL)
#define DLLIMPORT __declspec (dllexport)
#else							/* not _DLL */
#define DLLIMPORT __declspec (dllimport)
#endif

#else							/* not CYGWIN, not MSVC */

#define DLLIMPORT

#endif

53 54 55 56
#ifndef __CYGWIN__
#include <windows.h>
#endif

57
#endif /* pg_config_h_win32__ */