diff options
author | Bruce Momjian | 2006-03-05 04:43:57 +0000 |
---|---|---|
committer | Bruce Momjian | 2006-03-05 04:43:57 +0000 |
commit | 5fde8613753c9431e0f44c66877b9b449f9c72d4 (patch) | |
tree | 99323d90724bd5fac092d4bc5c19f71505ab1e0f /src/include/c.h | |
parent | c1bb2877b26a8192b2c566734bf16579bf332c79 (diff) |
Improve STRINGS_H macro test for MSVC extensions.
Add DLLIMPORT for V1 headers, in case Win32 don't export all symbols.
Diffstat (limited to 'src/include/c.h')
-rw-r--r-- | src/include/c.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/include/c.h b/src/include/c.h index fcab5cbd561..69a15e1df57 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -12,7 +12,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/c.h,v 1.197 2006/03/03 21:35:46 momjian Exp $ + * $PostgreSQL: pgsql/src/include/c.h,v 1.198 2006/03/05 04:43:57 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -57,6 +57,8 @@ #else #if defined(_MSC_VER) || defined(__BORLANDC__) #define WIN32_CLIENT_ONLY +/* Some use MinGW-generated pg_config.h but MSVC for extensions. */ +#undef HAVE_STRINGS_H #endif #endif #include "postgres_ext.h" @@ -66,8 +68,7 @@ #include <string.h> #include <stddef.h> #include <stdarg.h> -/* Some use MinGW-generated pg_config.h but MSVC for extensions. */ -#if defined(HAVE_STRINGS_H) && !defined(WIN32_CLIENT_ONLY) +#ifdef HAVE_STRINGS_H #include <strings.h> #endif #include <sys/types.h> |