From e54b0cba96683ae9a33458a9cbd5ea53c479754d Mon Sep 17 00:00:00 2001 From: Itagaki Takahiro Date: Fri, 28 May 2010 16:34:15 +0000 Subject: PGDLLEXPORT is __declspec (dllexport) only on MSVC, but is __declspec (dllimport) on other compilers because cygwin and mingw don't like dllexport. --- src/include/port/win32.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/include/port/win32.h') diff --git a/src/include/port/win32.h b/src/include/port/win32.h index d5d309bc13e..5e611d42349 100644 --- a/src/include/port/win32.h +++ b/src/include/port/win32.h @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.94 2010/05/27 07:59:48 itagaki Exp $ */ +/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.95 2010/05/28 16:34:15 itagaki Exp $ */ #if defined(_MSC_VER) || defined(__BORLANDC__) #define WIN32_ONLY_COMPILER @@ -58,7 +58,11 @@ #define PGDLLIMPORT __declspec (dllimport) #endif +#ifdef _MSC_VER #define PGDLLEXPORT __declspec (dllexport) +#else +#define PGDLLEXPORT __declspec (dllimport) +#endif #else /* not CYGWIN, not MSVC, not MingW */ #define PGDLLIMPORT -- cgit v1.2.3