Avoid PGDLLIMPORT for simple local references in frontend programs.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 Mar 2016 03:26:44 +0000 (23:26 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 Mar 2016 03:26:44 +0000 (23:26 -0400)
I was wondering if this would be an issue, and buildfarm member frogmouth
says it is.

src/include/common/keywords.h

index 577100d1b95debd80231acae72d9c61262c99d01..97c830521c91b738440f5ce0ff2b329a5fb1ab61 100644 (file)
@@ -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,