Add missing float.h include to snprintf.c.
authorAndres Freund
Wed, 4 Feb 2015 12:27:31 +0000 (13:27 +0100)
committerAndres Freund
Wed, 4 Feb 2015 12:31:40 +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 
+#ifdef _MSC_VER
+#include              /* for _isnan */
+#endif
 #include 
 #include 
 #ifndef WIN32