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@postgresql.org
Subject: pgsql: Fix up ecpg's configuration so it handles "long long int" in MSV
Date: Tue, 27 Feb 2018 21:47:14 +0000
Message-ID: <E1eqn5e-00082H-2p@gemulon.postgresql.org> (raw)

Fix up ecpg's configuration so it handles "long long int" in MSVC builds.

Although configure-based builds correctly define HAVE_LONG_LONG_INT when
appropriate (in both pg_config.h and ecpg_config.h), builds using the MSVC
scripts failed to do so.  This currently has no impact on the backend,
since it uses that symbol nowhere; but it does prevent ecpg from
supporting "long long int".  Fix that.

Also, adjust Solution.pm so that in the constructed ecpg_config.h file,
the "#if (_MSC_VER > 1200)" covers only the LONG_LONG_INT-related
#defines, not the whole file.  AFAICS this was a thinko on somebody's
part: ENABLE_THREAD_SAFETY should always be defined in Windows builds,
and in branches using USE_INTEGER_DATETIMES, the setting of that shouldn't
depend on the compiler version either.  If I'm wrong, I imagine the
buildfarm will say so.

Per bug #15080 from Jonathan Allen; issue diagnosed by Michael Meskes
and Andrew Gierth.  Back-patch to all supported branches.

Discussion: https://postgr.es/m/151935568942.1461.14623890240535309745@wrigleys.postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/51057feaa6bd24b51e6a4715c2090491ef037534

Modified Files
--------------
src/include/pg_config.h.win32 | 5 +++++
src/tools/msvc/Solution.pm    | 3 ++-
2 files changed, 7 insertions(+), 1 deletion(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1eqn5e-00082H-2p@gemulon.postgresql.org>
Permalink:  ../E1eqn5e-00082H-2p@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1eqn5e-00082H-2p@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: Fix up ecpg's configuration so it handles "long long int" in MSV
  In-Reply-To: <E1eqn5e-00082H-2p@gemulon.postgresql.org>
  References: <E1eqn5e-00082H-2p@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