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/fe_utils | |
parent | 80900d4690916a30f278d877eb5a7a42b14c3f0a (diff) | |
download | postgresql-8ec569479fc28ddd634a13dc100b36352ec3a3c2.tar.gz postgresql-8ec569479fc28ddd634a13dc100b36352ec3a3c2.zip |
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/fe_utils')
-rw-r--r-- | src/include/fe_utils/cancel.h | 2 | ||||
-rw-r--r-- | src/include/fe_utils/print.h | 9 | ||||
-rw-r--r-- | src/include/fe_utils/string_utils.h | 2 |
3 files changed, 7 insertions, 6 deletions
diff --git a/src/include/fe_utils/cancel.h b/src/include/fe_utils/cancel.h index 7005b804bcf..3b84daf6eb6 100644 --- a/src/include/fe_utils/cancel.h +++ b/src/include/fe_utils/cancel.h @@ -18,7 +18,7 @@ #include "libpq-fe.h" -extern volatile sig_atomic_t CancelRequested; +extern PGDLLIMPORT volatile sig_atomic_t CancelRequested; extern void SetCancelConn(PGconn *conn); extern void ResetCancelConn(void); diff --git a/src/include/fe_utils/print.h b/src/include/fe_utils/print.h index 836b4e29a81..bb2f1bf4e64 100644 --- a/src/include/fe_utils/print.h +++ b/src/include/fe_utils/print.h @@ -177,11 +177,12 @@ typedef struct printQueryOpt } printQueryOpt; -extern volatile sig_atomic_t cancel_pressed; +extern PGDLLIMPORT volatile sig_atomic_t cancel_pressed; -extern const printTextFormat pg_asciiformat; -extern const printTextFormat pg_asciiformat_old; -extern printTextFormat pg_utf8format; /* ideally would be const, but... */ +extern PGDLLIMPORT const printTextFormat pg_asciiformat; +extern PGDLLIMPORT const printTextFormat pg_asciiformat_old; +extern PGDLLIMPORT printTextFormat pg_utf8format; /* ideally would be const, + * but... */ extern void disable_sigpipe_trap(void); diff --git a/src/include/fe_utils/string_utils.h b/src/include/fe_utils/string_utils.h index 3c88250e6cc..b9b8708dab7 100644 --- a/src/include/fe_utils/string_utils.h +++ b/src/include/fe_utils/string_utils.h @@ -20,7 +20,7 @@ #include "pqexpbuffer.h" /* Global variables controlling behavior of fmtId() and fmtQualifiedId() */ -extern int quote_all_identifiers; +extern PGDLLIMPORT int quote_all_identifiers; extern PQExpBuffer (*getLocalPQExpBuffer) (void); /* Functions */ |