summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-03-23 23:26:44 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-03-23 23:26:44 -0400
commitc2d1eea9e750edb267e3f071a129e03d79ad198b (patch)
tree47fe68705e6251b6d2df80d259ea921212e597f3 /src
parent473b93287040b20017cc25a157cffdc5b978c254 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/include/common/keywords.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/common/keywords.h b/src/include/common/keywords.h
index 577100d1b95..97c830521c9 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,