diff options
| author | Bruce Momjian <bruce@momjian.us> | 2006-03-05 04:43:57 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2006-03-05 04:43:57 +0000 |
| commit | 5fde8613753c9431e0f44c66877b9b449f9c72d4 (patch) | |
| tree | 99323d90724bd5fac092d4bc5c19f71505ab1e0f /src/include/fmgr.h | |
| parent | c1bb2877b26a8192b2c566734bf16579bf332c79 (diff) | |
| download | postgresql-5fde8613753c9431e0f44c66877b9b449f9c72d4.tar.gz | |
Improve STRINGS_H macro test for MSVC extensions.
Add DLLIMPORT for V1 headers, in case Win32 don't export all symbols.
Diffstat (limited to 'src/include/fmgr.h')
| -rw-r--r-- | src/include/fmgr.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/include/fmgr.h b/src/include/fmgr.h index b7a85f15f5..07aa052c6d 100644 --- a/src/include/fmgr.h +++ b/src/include/fmgr.h @@ -11,7 +11,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/fmgr.h,v 1.40 2005/10/15 02:49:41 momjian Exp $ + * $PostgreSQL: pgsql/src/include/fmgr.h,v 1.41 2006/03/05 04:43:57 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -293,10 +293,13 @@ typedef struct /* Expected signature of an info function */ typedef Pg_finfo_record *(*PGFInfoFunction) (void); -/* Macro to build an info function associated with the given function name */ - +/* + * Macro to build an info function associated with the given function name. + * Win32 loadable functions usually link with 'dlltool --export-all', but it + * doesn't hurt to add DLLIMPORT in case they don't. + */ #define PG_FUNCTION_INFO_V1(funcname) \ -extern Pg_finfo_record * CppConcat(pg_finfo_,funcname) (void); \ +extern DLLIMPORT Pg_finfo_record * CppConcat(pg_finfo_,funcname) (void); \ Pg_finfo_record * \ CppConcat(pg_finfo_,funcname) (void) \ { \ |
