pgsql: Silence MSVC warnings about redefinition of isnan - Mailing list pgsql-committers

From Andrew Dunstan
Subject pgsql: Silence MSVC warnings about redefinition of isnan
Date
Msg-id E1gOR58-0005jK-Ss@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix AC_REQUIRES breakage in LLVM autoconf tests.
Next
From: Andrew Dunstan
Date:
Subject: pgsql: fix typo