mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
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.
This commit is contained in:
parent
473b932870
commit
c2d1eea9e7
@ -28,8 +28,13 @@ typedef struct ScanKeyword
|
|||||||
int16 category; /* see codes above */
|
int16 category; /* see codes above */
|
||||||
} ScanKeyword;
|
} ScanKeyword;
|
||||||
|
|
||||||
|
#ifndef FRONTEND
|
||||||
extern PGDLLIMPORT const ScanKeyword ScanKeywords[];
|
extern PGDLLIMPORT const ScanKeyword ScanKeywords[];
|
||||||
extern PGDLLIMPORT const int NumScanKeywords;
|
extern PGDLLIMPORT const int NumScanKeywords;
|
||||||
|
#else
|
||||||
|
extern const ScanKeyword ScanKeywords[];
|
||||||
|
extern const int NumScanKeywords;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
extern const ScanKeyword *ScanKeywordLookup(const char *text,
|
extern const ScanKeyword *ScanKeywordLookup(const char *text,
|
||||||
|
Loading…
Reference in New Issue
Block a user