projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c036edb
)
Add missing float.h include to snprintf.c.
author
Andres Freund
<
[email protected]
>
Wed, 4 Feb 2015 12:27:31 +0000
(13:27 +0100)
committer
Andres Freund
<
[email protected]
>
Wed, 4 Feb 2015 12:27:31 +0000
(13:27 +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
patch
|
blob
|
blame
|
history
diff --git
a/src/port/snprintf.c
b/src/port/snprintf.c
index 54e23355f3eb39a485b568db26f257aa55e580d7..166374cabd6b7bf4a4b70afe5685f17b366ce231 100644
(file)
--- 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