Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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:36 +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 54e23355f3eb39a485b568db26f257aa55e580d7..166374cabd6b7bf4a4b70afe5685f17b366ce231 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