Thread: pgsql: Silence MSVC warnings about redefinition of isnan

pgsql: Silence MSVC warnings about redefinition of isnan

From
Andrew Dunstan
Date:
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(-)