From 77e50a61ffff34aae8cb3ffa5a7333c1049e5f37 Mon Sep 17 00:00:00 2001 From: Itagaki Takahiro Date: Thu, 27 May 2010 07:59:48 +0000 Subject: Mark PG_MODULE_MAGIC and PG_FUNCTION_INFO_V1 with PGDLLEXPORT independently from BUILDING_DLL. It is always __declspec(dllexport). --- src/include/c.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/include/c.h') 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 /* -- cgit v1.2.3