projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
473b932
)
Avoid PGDLLIMPORT for simple local references in frontend programs.
author
Tom Lane
<tgl@sss.pgh.pa.us>
Thu, 24 Mar 2016 03:26:44 +0000
(23:26 -0400)
committer
Tom 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
patch
|
blob
|
blame
|
history
diff --git
a/src/include/common/keywords.h
b/src/include/common/keywords.h
index 577100d1b95debd80231acae72d9c61262c99d01..97c830521c91b738440f5ce0ff2b329a5fb1ab61 100644
(file)
--- 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,