independently from BUILDING_DLL. It is always __declspec(dllexport).
index f63dd20bace220cb40a41e270fa0e2b79bfef4a0..bec1a8cc85183fccdf1d3550d9e22c4fa4e3e55e 100644 (file)
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/c.h,v 1.240 2010年02月26日 02:01:20 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/c.h,v 1.241 2010年05月27日 07:59:48 itagaki Exp $
*
*-------------------------------------------------------------------------
*/
@@ -784,8 +784,12 @@ extern int vsnprintf(char *str, size_t count, const char *fmt, va_list args);
#define memmove(d, s, c) bcopy(s, d, c)
#endif
+/* no special DLL markers on most ports */
#ifndef PGDLLIMPORT
-#define PGDLLIMPORT /* no special DLL markers on most ports */
+#define PGDLLIMPORT
+#endif
+#ifndef PGDLLEXPORT
+#define PGDLLEXPORT
#endif
/*
index cf74f97cc0cecb0deabd6e7d6813b4c298dddebe..e588bb15d2f95c42bbffbde0c0b780311aad28ae 100644 (file)
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/fmgr.h,v 1.65 2010年02月26日 02:01:20 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/fmgr.h,v 1.66 2010年05月27日 07:59:48 itagaki Exp $
*
*-------------------------------------------------------------------------
*/
@@ -328,7 +328,7 @@ typedef const Pg_finfo_record *(*PGFInfoFunction) (void);
* doesn't hurt to add PGDLLIMPORT in case they don't.
*/
#define PG_FUNCTION_INFO_V1(funcname) \
-extern PGDLLIMPORT const Pg_finfo_record * CppConcat(pg_finfo_,funcname)(void); \
+extern PGDLLEXPORT const Pg_finfo_record * CppConcat(pg_finfo_,funcname)(void); \
const Pg_finfo_record * \
CppConcat(pg_finfo_,funcname) (void) \
{ \
@@ -397,7 +397,7 @@ typedef const Pg_magic_struct *(*PGModuleMagicFunction) (void);
#define PG_MAGIC_FUNCTION_NAME_STRING "Pg_magic_func"
#define PG_MODULE_MAGIC \
-extern PGDLLIMPORT const Pg_magic_struct *PG_MAGIC_FUNCTION_NAME(void); \
+extern PGDLLEXPORT const Pg_magic_struct *PG_MAGIC_FUNCTION_NAME(void); \
const Pg_magic_struct * \
PG_MAGIC_FUNCTION_NAME(void) \
{ \
index 6d46f0c774f0db263b7eb1956cf75ec778864f4d..cb88bc08901dfa57f6612ba78eb5bed06d3b1269 100644 (file)
-/* $PostgreSQL: pgsql/src/include/port/cygwin.h,v 1.7 2007年07月25日 12:22:53 mha Exp $ */
+/* $PostgreSQL: pgsql/src/include/port/cygwin.h,v 1.8 2010年05月27日 07:59:48 itagaki Exp $ */
#include <cygwin/version.h>
#define PGDLLIMPORT __declspec (dllexport)
#else
#define PGDLLIMPORT __declspec (dllimport)
-
#endif
+
+#define PGDLLEXPORT __declspec (dllexport)
index 6dbda80f4fbec332208cf20a585a6986991b7b86..d5d309bc13e29a478d8e9fbb84e9d017f6b2ed91 100644 (file)
-/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.93 2010年02月16日 19:26:02 mha Exp $ */
+/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.94 2010年05月27日 07:59:48 itagaki Exp $ */
#if defined(_MSC_VER) || defined(__BORLANDC__)
#define WIN32_ONLY_COMPILER
#else /* not BUILDING_DLL */
#define PGDLLIMPORT __declspec (dllimport)
#endif
-#else /* not CYGWIN, not MSVC, not MingW */
+#define PGDLLEXPORT __declspec (dllexport)
+
+#else /* not CYGWIN, not MSVC, not MingW */
#define PGDLLIMPORT
+#define PGDLLEXPORT
#endif