]> granicus.if.org Git - postgresql/commitdiff
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:17:43 +0000 (12:17 +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 69f15a824111e621e320aecadda3e87e52c81daa..4aca4bf66f529f2e60b876f6d80655fe2f0ff8d1 100644 (file)
@@ -19,4 +19,4 @@
 #define PGDLLIMPORT __declspec (dllimport)
 #endif
 
-#define PGDLLEXPORT __declspec (dllimport)
+#define PGDLLEXPORT
index 988c1c98ba73f5caf454318f6fcca5be274b7fd0..3417ab5e95c941195ce8983ed475edbd92906d57 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