Portability hack for pg_global_prng_state.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 29 Nov 2021 05:04:45 +0000 (00:04 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 29 Nov 2021 05:04:45 +0000 (00:04 -0500)
commit11b500072e42c214462b973b0b05f1c68992226b
treeab3bd4b894230d4877d600ae73697a4c3865fd6d
parent6fb7c5d67cdd55454fe6317f939a191f85e96473
Portability hack for pg_global_prng_state.

PGDLLIMPORT is only appropriate for variables declared in the backend,
not when the variable is coming from a library included in frontend code.
(This isn't a particularly nice fix, but for now, use the same method
employed elsewhere.)

Discussion: https://postgr.es/m/E1mrWUD-000235-Hq@gemulon.postgresql.org
src/include/common/pg_prng.h