aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2015-02-04 13:27:31 +0100
committerAndres Freund <andres@anarazel.de>2015-02-04 13:31:36 +0100
commit742734d2b54005f228655f0733e869b16ec6cb2b (patch)
tree36e521039a4776906bdafd96a0bbff6258bfb7a0 /src
parent7c21a8aca39c504ea448cce82230163ca93cfaf4 (diff)
downloadpostgresql-742734d2b54005f228655f0733e869b16ec6cb2b.tar.gz
postgresql-742734d2b54005f228655f0733e869b16ec6cb2b.zip
Add missing float.h include to snprintf.c.
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.
Diffstat (limited to 'src')
-rw-r--r--src/port/snprintf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/port/snprintf.c b/src/port/snprintf.c
index 54e23355f3e..166374cabd6 100644
--- a/src/port/snprintf.c
+++ b/src/port/snprintf.c
@@ -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