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:
@@ -110,7 +110,7 @@ typedef enum LWLockMode
|
||||
|
||||
|
||||
#ifdef LOCK_DEBUG
|
||||
extern bool Trace_lwlocks;
|
||||
extern PGDLLIMPORT bool Trace_lwlocks;
|
||||
#endif
|
||||
|
||||
extern bool LWLockAcquire(LWLock *lock, LWLockMode mode);
|
||||
@@ -121,7 +121,7 @@ extern void LWLockReleaseClearVar(LWLock *lock, uint64 *valptr, uint64 val);
|
||||
extern void LWLockReleaseAll(void);
|
||||
extern bool LWLockHeldByMe(LWLock *lock);
|
||||
extern bool LWLockHeldByMeInMode(LWLock *lock, LWLockMode mode);
|
||||
extern int LWLockHeldCount(void);
|
||||
extern int LWLockHeldCount(void);
|
||||
|
||||
extern bool LWLockWaitForVar(LWLock *lock, uint64 *valptr, uint64 oldval, uint64 *newval);
|
||||
extern void LWLockUpdateVar(LWLock *lock, uint64 *valptr, uint64 value);
|
||||
|
||||
Reference in New Issue
Block a user