]> granicus.if.org Git - postgresql/commitdiff
Remove plperl isnan hack
authorPeter Eisentraut <peter_e@gmx.net>
Mon, 30 Apr 2018 18:34:05 +0000 (14:34 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Mon, 30 Apr 2018 18:34:05 +0000 (14:34 -0400)
The code previously undefined isnan because of a compiler warning on
MinGW.  Since we now need to use isnan, we can't do that anymore.

We might need a different solution if the compiler warning is too
annoying.

src/pl/plperl/plperl.h

index 843331e9dd3848daa3490053a6826bcd687017b2..c72c6ea59fcc1c65096764cf29ca2af1300f1e7b 100644 (file)
 /* stop perl headers from hijacking stdio and other stuff on Windows */
 #ifdef WIN32
 #define WIN32IO_IS_STDIO
-/*
- * isnan is defined in both the perl and mingw headers. We don't use it,
- * so this just clears up the compile warning.
- */
-#ifdef isnan
-#undef isnan
-#endif
 #endif                                                 /* WIN32 */
 
 /*