diff options
author | Robert Haas <rhaas@postgresql.org> | 2022-04-08 08:16:38 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2022-04-08 08:16:38 -0400 |
commit | 8ec569479fc28ddd634a13dc100b36352ec3a3c2 (patch) | |
tree | 2cde3957ed4071478d647c305161eb24df35be15 /src/include/access/xlogutils.h | |
parent | 80900d4690916a30f278d877eb5a7a42b14c3f0a (diff) |
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
Diffstat (limited to 'src/include/access/xlogutils.h')
-rw-r--r-- | src/include/access/xlogutils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/access/xlogutils.h b/src/include/access/xlogutils.h index 3746e31e40f..761625acf44 100644 --- a/src/include/access/xlogutils.h +++ b/src/include/access/xlogutils.h @@ -21,7 +21,7 @@ * potentially perform work during recovery should check RecoveryInProgress(). * See XLogCtl notes in xlog.c. */ -extern bool InRecovery; +extern PGDLLIMPORT bool InRecovery; /* * Like InRecovery, standbyState is only valid in the startup process. @@ -52,7 +52,7 @@ typedef enum STANDBY_SNAPSHOT_READY } HotStandbyState; -extern HotStandbyState standbyState; +extern PGDLLIMPORT HotStandbyState standbyState; #define InHotStandby (standbyState >= STANDBY_SNAPSHOT_PENDING) |