mirror of
https://github.com/postgres/postgres.git
synced 2026-01-27 21:43:08 +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:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user