]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Ensure HAVE_DECL_XXX macros in MSVC builds match those in Unix.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 15 Jul 2021 15:00:43 +0000 (11:00 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 15 Jul 2021 15:00:43 +0000 (11:00 -0400)
commit081e86bd9e7e00af3cbf9bcdec8277f02d22e6b4
treed72c15c587e7f7d5daf570346c4cbc10ea6a7f9b
parent4d39d4e639b44503c9950f61ec882113385db7ec
Ensure HAVE_DECL_XXX macros in MSVC builds match those in Unix.

Autoconf's AC_CHECK_DECLS() always defines HAVE_DECL_whatever
as 1 or 0, but some of the entries in msvc/Solution.pm showed
such symbols as "undef" instead of 0.  Fix that for consistency.
There's no live bug in current usages AFAICS, but it's not hard
to imagine one creeping in if more-complex #if tests get added.

Back-patch to v13, which is as far back as Solution.pm contains
this data.  The inconsistency still exists in the manually-filled
pg_config_ext.h.win32 files of older branches; but as long as the
problem is only latent, it doesn't seem worth the trouble to
clean things up there.

Discussion: https://postgr.es/m/3185430.1626133592@sss.pgh.pa.us
src/tools/msvc/Solution.pm