]> granicus.if.org Git - postgresql/commitdiff
Add missing float.h include to snprintf.c.
authorAndres Freund <andres@anarazel.de>
Wed, 4 Feb 2015 12:27:31 +0000 (13:27 +0100)
committerAndres Freund <andres@anarazel.de>
Wed, 4 Feb 2015 12:31:44 +0000 (13:31 +0100)
On windows _isnan() (which isnan() is redirected to in port/win32.h)
is declared in float.h, not math.h.

Per buildfarm animal currawong.

Backpatch to all supported branches.

src/port/snprintf.c

index e655ce35b7393af461d44c62cdbdff96f7558b3d..c10a82a28843c607df5d9d373080caccd1deb90e 100644 (file)
@@ -33,6 +33,9 @@
 #include "c.h"
 
 #include <ctype.h>
+#ifdef _MSC_VER
+#include <float.h>                             /* for _isnan */
+#endif
 #include <limits.h>
 #include <math.h>
 #ifndef WIN32