pgsql: Silence MSVC warnings about redefinition of isnan

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Silence MSVC warnings about redefinition of isnan
Date: 2018-11-18 17:42:02
Message-ID: E1gOR58-0005jK-Ss@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Silence MSVC warnings about redefinition of isnan

Some versions of perl.h define isnan when the compiler is MSVC. To avoid
warnings about this, undefine the symbol before including perl.h and
re-add the definition afterwards if it wasn't recreated.

Discussion: https://postgr.es/m/caf0568e-3c1f-07fd-6914-d903f22560f2@2ndQuadrant.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d5d7f7f3b78e00009ee87ad01d1fb87b28968f65

Modified Files
--------------
src/pl/plperl/plperl.h | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2018-11-18 17:43:25 pgsql: fix typo
Previous Message Tom Lane 2018-11-18 04:16:29 pgsql: Fix AC_REQUIRES breakage in LLVM autoconf tests.