mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +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:
@@ -59,12 +59,12 @@ typedef int File;
|
||||
/* GUC parameter */
|
||||
extern PGDLLIMPORT int max_files_per_process;
|
||||
extern PGDLLIMPORT bool data_sync_retry;
|
||||
extern int recovery_init_sync_method;
|
||||
extern PGDLLIMPORT int recovery_init_sync_method;
|
||||
|
||||
/*
|
||||
* This is private to fd.c, but exported for save/restore_backend_variables()
|
||||
*/
|
||||
extern int max_safe_fds;
|
||||
extern PGDLLIMPORT int max_safe_fds;
|
||||
|
||||
/*
|
||||
* On Windows, we have to interpret EACCES as possibly meaning the same as
|
||||
|
||||
Reference in New Issue
Block a user