diff options
| author | Itagaki Takahiro | 2010-05-27 07:59:48 +0000 |
|---|---|---|
| committer | Itagaki Takahiro | 2010-05-27 07:59:48 +0000 |
| commit | 77e50a61ffff34aae8cb3ffa5a7333c1049e5f37 (patch) | |
| tree | d1f60f1db2d0201e1a4fdf5a37c8bc153a47f3fb /src/include/c.h | |
| parent | aa5bec67dee9bbd9929a468211d004c448859635 (diff) | |
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/c.h')
| -rw-r--r-- | src/include/c.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/include/c.h b/src/include/c.h index f63dd20bac..bec1a8cc85 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -12,7 +12,7 @@ * 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 /* |
