Rationalizing declarations of src/common/ variables
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-hackers@lists.postgresql.org
Date: 2021-11-29T05:57:29Z
Lists: pgsql-hackers
Attachments
- improve-variable-export-declarations-1.patch (text/x-diff) patch
We've been burnt by this issue repeatedly (cf c2d1eea9e, d025cf88b, 11b500072) so I think it's time to try to formalize and document what to do to export a variable from src/common/ or src/port/. Here's a draft patch. I'm not in love with the name "PGDLLIMPORT_FE" and would welcome better ideas. regards, tom lane
Commits
-
Simplify declaring variables exported from libpgcommon and libpgport.
- e04a8059a74c 15.0 landed