diff options
author | Itagaki Takahiro <itagaki.takahiro@gmail.com> | 2010-11-10 12:17:43 +0900 |
---|---|---|
committer | Itagaki Takahiro <itagaki.takahiro@gmail.com> | 2010-11-10 12:17:43 +0900 |
commit | 844ed5dc97d4374a4056f0f1cc3b0b78347c74c5 (patch) | |
tree | 8fb02f59d141b2ff830e654809cc08b08bbf34f4 /src | |
parent | b47953f9c69d48a9261bd643e3170017b93f6337 (diff) | |
download | postgresql-844ed5dc97d4374a4056f0f1cc3b0b78347c74c5.tar.gz postgresql-844ed5dc97d4374a4056f0f1cc3b0b78347c74c5.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/include/port/cygwin.h | 2 | ||||
-rw-r--r-- | src/include/port/win32.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/include/port/cygwin.h b/src/include/port/cygwin.h index 69f15a82411..4aca4bf66f5 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 988c1c98ba7..3417ab5e95c 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 |