Skip to content
Snippets Groups Projects
pg_config.h.win32 1.09 KiB
Newer Older
#ifndef	pg_config_h_win32__
#define	pg_config_h_win32__
 * Parts of pg_config.h that you get with autoconf on other systems
Tom Lane's avatar
Tom Lane committed
#define PG_VERSION "8.2devel"
#define PG_VERSION_STR "8.2devel (win32)"
#define HAVE_ATEXIT
#ifdef __BORLANDC__
#define HAVE_RANDOM
#endif

/* 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

#ifndef __CYGWIN__
#include <windows.h>
#endif

#endif /* pg_config_h_win32__ */