Don't use __declspec (dllimport) for PGDLLEXPORT to reduce warnings
authorItagaki Takahiro <itagaki.takahiro@gmail.com>
Wed, 10 Nov 2010 03:17:43 +0000 (12:17 +0900)
committerItagaki Takahiro <itagaki.takahiro@gmail.com>
Wed, 10 Nov 2010 03:19:40 +0000 (12:19 +0900)
by gcc version 4 on mingw and cygwin. We don't use dllexport here
because dllexport and dllwrap don't work well together.

src/include/port/cygwin.h
src/include/port/win32.h

index f07c07eeff676e20a463d5752ea4a3206d8c5839..dd87087a92bbfca49d6e7cfe3add6971934cc19f 100644 (file)
@@ -19,4 +19,4 @@
 #define PGDLLIMPORT __declspec (dllimport)
 #endif
 
-#define PGDLLEXPORT __declspec (dllimport)
+#define PGDLLEXPORT
index da5d6614df8b1f234d9c7c804a15999e98f33e98..7338b115c46884409a61479f5f5d044837c7535d 100644 (file)
@@ -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