mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Apply PGDLLIMPORT markings broadly.
Up until now, we've had a policy of only marking certain variables in the PostgreSQL header files with PGDLLIMPORT, but now we've decided to mark them all. This means that extensions running on Windows should no longer operate at a disadvantage as compared to extensions running on Linux: if the variable is present in a header file, it should be accessible. Discussion: http://postgr.es/m/CA+TgmoYanc1_FSfimhgiWSqVyP5KKmh5NP2BWNwDhO8Pg2vGYQ@mail.gmail.com
This commit is contained in:
@ -84,7 +84,7 @@ typedef struct
|
||||
/*
|
||||
* GUC variable for current configuration
|
||||
*/
|
||||
extern char *TSCurrentConfig;
|
||||
extern PGDLLIMPORT char *TSCurrentConfig;
|
||||
|
||||
|
||||
extern TSParserCacheEntry *lookup_ts_parser_cache(Oid prsId);
|
||||
|
@ -169,7 +169,7 @@ typedef struct
|
||||
#define OP_PHRASE 4 /* highest code, tsquery_cleanup.c */
|
||||
#define OP_COUNT 4
|
||||
|
||||
extern const int tsearch_op_priority[OP_COUNT];
|
||||
extern PGDLLIMPORT const int tsearch_op_priority[OP_COUNT];
|
||||
|
||||
/* get operation priority by its code*/
|
||||
#define OP_PRIORITY(x) ( tsearch_op_priority[(x) - 1] )
|
||||
|
Reference in New Issue
Block a user