From c2d1eea9e750edb267e3f071a129e03d79ad198b Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 23 Mar 2016 23:26:44 -0400 Subject: [PATCH] Avoid PGDLLIMPORT for simple local references in frontend programs. I was wondering if this would be an issue, and buildfarm member frogmouth says it is. --- src/include/common/keywords.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/include/common/keywords.h b/src/include/common/keywords.h index 577100d1b9..97c830521c 100644 --- a/src/include/common/keywords.h +++ b/src/include/common/keywords.h @@ -28,8 +28,13 @@ typedef struct ScanKeyword int16 category; /* see codes above */ } ScanKeyword; +#ifndef FRONTEND extern PGDLLIMPORT const ScanKeyword ScanKeywords[]; extern PGDLLIMPORT const int NumScanKeywords; +#else +extern const ScanKeyword ScanKeywords[]; +extern const int NumScanKeywords; +#endif extern const ScanKeyword *ScanKeywordLookup(const char *text,