diff options
| author | Bruce Momjian | 2001-07-11 22:12:43 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2001-07-11 22:12:43 +0000 |
| commit | 4051bce27dea570b452e7181591319be45d9c917 (patch) | |
| tree | e6ea721a3ebbcea3e531397cdf41f12a8e91976f /src/include | |
| parent | d674b48307d97712a8d5bb49226d8397a778aac5 (diff) | |
Libpq++ fixes for Win32 compile.
Christian Ullrich
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/c.h | 10 | ||||
| -rw-r--r-- | src/include/config.h.win32 | 3 |
2 files changed, 11 insertions, 2 deletions
diff --git a/src/include/c.h b/src/include/c.h index 2b6a9e0d7f..0457a4af5b 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -12,7 +12,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: c.h,v 1.96 2001/07/03 20:21:50 petere Exp $ + * $Id: c.h,v 1.97 2001/07/11 22:12:43 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -615,7 +615,13 @@ typedef NameData *Name; #else /* not BUILDING_DLL */ #define DLLIMPORT __declspec (dllimport) #endif -#else /* not CYGWIN */ +#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 diff --git a/src/include/config.h.win32 b/src/include/config.h.win32 index de46dbf6cf..e8323b7736 100644 --- a/src/include/config.h.win32 +++ b/src/include/config.h.win32 @@ -20,3 +20,6 @@ #define HAVE_ATEXIT #define HAVE_MEMMOVE + +#define HAVE_CXX_STRING_HEADER +#define HAVE_NAMESPACE_STD |
