mirror of
https://github.com/postgres/postgres.git
synced 2025-11-25 12:03:53 +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:
@@ -400,7 +400,7 @@ typedef struct PROC_HDR
|
||||
|
||||
extern PGDLLIMPORT PROC_HDR *ProcGlobal;
|
||||
|
||||
extern PGPROC *PreparedXactProcs;
|
||||
extern PGDLLIMPORT PGPROC *PreparedXactProcs;
|
||||
|
||||
/* Accessor for PGPROC given a pgprocno. */
|
||||
#define GetPGProcByNumber(n) (&ProcGlobal->allProcs[(n)])
|
||||
@@ -421,7 +421,7 @@ extern PGDLLIMPORT int StatementTimeout;
|
||||
extern PGDLLIMPORT int LockTimeout;
|
||||
extern PGDLLIMPORT int IdleInTransactionSessionTimeout;
|
||||
extern PGDLLIMPORT int IdleSessionTimeout;
|
||||
extern bool log_lock_waits;
|
||||
extern PGDLLIMPORT bool log_lock_waits;
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user