diff options
| author | Itagaki Takahiro <itagaki.takahiro@gmail.com> | 2010-05-27 07:59:48 +0000 |
|---|---|---|
| committer | Itagaki Takahiro <itagaki.takahiro@gmail.com> | 2010-05-27 07:59:48 +0000 |
| commit | 77e50a61ffff34aae8cb3ffa5a7333c1049e5f37 (patch) | |
| tree | d1f60f1db2d0201e1a4fdf5a37c8bc153a47f3fb /src/include/fmgr.h | |
| parent | aa5bec67dee9bbd9929a468211d004c448859635 (diff) | |
| download | postgresql-77e50a61ffff34aae8cb3ffa5a7333c1049e5f37.tar.gz | |
Mark PG_MODULE_MAGIC and PG_FUNCTION_INFO_V1 with PGDLLEXPORT
independently from BUILDING_DLL. It is always __declspec(dllexport).
Diffstat (limited to 'src/include/fmgr.h')
| -rw-r--r-- | src/include/fmgr.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/fmgr.h b/src/include/fmgr.h index cf74f97cc0..e588bb15d2 100644 --- a/src/include/fmgr.h +++ b/src/include/fmgr.h @@ -11,7 +11,7 @@ * 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) \ { \ |
