pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Ensure HAVE_DECL_XXX macros in MSVC builds match those in Unix.
Date: Thu, 15 Jul 2021 15:00:59 +0000
Message-ID: <E1m42rD-0006fy-AG@gemulon.postgresql.org> (raw)

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

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/081e86bd9e7e00af3cbf9bcdec8277f02d22e6b4

Modified Files
--------------
src/tools/msvc/Solution.pm | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1m42rD-0006fy-AG@gemulon.postgresql.org>
Permalink:  ../E1m42rD-0006fy-AG@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1m42rD-0006fy-AG@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Ensure HAVE_DECL_XXX macros in MSVC builds match those in Unix.
  In-Reply-To: <E1m42rD-0006fy-AG@gemulon.postgresql.org>
  References: <E1m42rD-0006fy-AG@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox