From: Itagaki Takahiro Date: Wed, 10 Nov 2010 03:17:43 +0000 (+0900) Subject: Don't use __declspec (dllimport) for PGDLLEXPORT to reduce warnings X-Git-Tag: REL9_0_2~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=244cc39d854a10b782840473678a2d40fd42cc06;p=thirdparty%2Fpostgresql.git Don't use __declspec (dllimport) for PGDLLEXPORT to reduce warnings by gcc version 4 on mingw and cygwin. We don't use dllexport here because dllexport and dllwrap don't work well together. --- diff --git a/src/include/port/cygwin.h b/src/include/port/cygwin.h index f07c07eeff6..dd87087a92b 100644 --- a/src/include/port/cygwin.h +++ b/src/include/port/cygwin.h @@ -19,4 +19,4 @@ #define PGDLLIMPORT __declspec (dllimport) #endif -#define PGDLLEXPORT __declspec (dllimport) +#define PGDLLEXPORT diff --git a/src/include/port/win32.h b/src/include/port/win32.h index da5d6614df8..7338b115c46 100644 --- a/src/include/port/win32.h +++ b/src/include/port/win32.h @@ -61,7 +61,7 @@ #ifdef _MSC_VER #define PGDLLEXPORT __declspec (dllexport) #else -#define PGDLLEXPORT __declspec (dllimport) +#define PGDLLEXPORT #endif #else /* not CYGWIN, not MSVC, not MingW */ #define PGDLLIMPORT