Skip to content

Commit c2d1eea

Browse files
committed
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.
1 parent 473b932 commit c2d1eea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/include/common/keywords.h

+5
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,13 @@ typedef struct ScanKeyword
2828
int16 category; /* see codes above */
2929
} ScanKeyword;
3030

31+
#ifndef FRONTEND
3132
extern PGDLLIMPORT const ScanKeyword ScanKeywords[];
3233
extern PGDLLIMPORT const int NumScanKeywords;
34+
#else
35+
extern const ScanKeyword ScanKeywords[];
36+
extern const int NumScanKeywords;
37+
#endif
3338

3439

3540
extern const ScanKeyword *ScanKeywordLookup(const char *text,

0 commit comments

Comments
 (0)