postgresql/src/include/pg_config.h.win32
Bruce Momjian cd8f3ec599 I reconfirmed MS-VC6. Thank you for wonderful correspondence.
However, Another problem newly occurred.
This solves the problem of snprintf and vsnprintf.

Patch to HEAD and 8.1.X.

Hiroshi Saito
2005-12-09 04:50:40 +00:00

64 lines
1.2 KiB
Plaintext

#ifndef pg_config_h_win32__
#define pg_config_h_win32__
/*
* Parts of pg_config.h that you get with autoconf on other systems
*/
#define PG_VERSION "8.2devel"
#define PG_VERSION_STR "8.2devel (win32)"
#define DEF_PGPORT 5432
#define DEF_PGPORT_STR "5432"
#define MAXIMUM_ALIGNOF 4
#define ACCEPT_TYPE_ARG3 int
#define MAXPGPATH 1024
#define INDEX_MAX_KEYS 32
#define HAVE_ATEXIT
#define HAVE_MEMMOVE
#ifdef __BORLANDC__
#define HAVE_RANDOM
#endif
/* use _snprintf and _vsnprintf */
#define HAVE_DECL_SNPRINTF 1
#define snprintf _snprintf
#define HAVE_DECL_VSNPRINTF 1
#define vsnprintf _vsnprintf
/* 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__ */