diff options
author | Itagaki Takahiro <itagaki.takahiro@gmail.com> | 2010-05-28 16:34:15 +0000 |
---|---|---|
committer | Itagaki Takahiro <itagaki.takahiro@gmail.com> | 2010-05-28 16:34:15 +0000 |
commit | e54b0cba96683ae9a33458a9cbd5ea53c479754d (patch) | |
tree | c5e5aba64b8172d49bad2b0ec8a4fb9bb5ae5253 /src | |
parent | fe76f93d11a21bc851747433ac70c04ab3797483 (diff) | |
download | postgresql-e54b0cba96683ae9a33458a9cbd5ea53c479754d.tar.gz postgresql-e54b0cba96683ae9a33458a9cbd5ea53c479754d.zip |
PGDLLEXPORT is __declspec (dllexport) only on MSVC,
but is __declspec (dllimport) on other compilers
because cygwin and mingw don't like dllexport.
Diffstat (limited to 'src')
-rw-r--r-- | src/include/port/cygwin.h | 4 | ||||
-rw-r--r-- | src/include/port/win32.h | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/include/port/cygwin.h b/src/include/port/cygwin.h index cb88bc08901..f07c07eeff6 100644 --- a/src/include/port/cygwin.h +++ b/src/include/port/cygwin.h @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/include/port/cygwin.h,v 1.8 2010/05/27 07:59:48 itagaki Exp $ */ +/* $PostgreSQL: pgsql/src/include/port/cygwin.h,v 1.9 2010/05/28 16:34:15 itagaki Exp $ */ #include <cygwin/version.h> @@ -19,4 +19,4 @@ #define PGDLLIMPORT __declspec (dllimport) #endif -#define PGDLLEXPORT __declspec (dllexport) +#define PGDLLEXPORT __declspec (dllimport) 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 |