diff options
author | Tom Lane | 2016-03-24 03:26:44 +0000 |
---|---|---|
committer | Tom Lane | 2016-03-24 03:26:44 +0000 |
commit | c2d1eea9e750edb267e3f071a129e03d79ad198b (patch) | |
tree | 47fe68705e6251b6d2df80d259ea921212e597f3 | |
parent | 473b93287040b20017cc25a157cffdc5b978c254 (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.
-rw-r--r-- | src/include/common/keywords.h | 5 |
1 files changed, 5 insertions, 0 deletions
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, |