diff options
author | Andres Freund <andres@anarazel.de> | 2015-02-04 13:27:31 +0100 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2015-02-04 13:31:44 +0100 |
commit | eae798ae1d98f8f62cc0b93a2c6972985f070446 (patch) | |
tree | 051a20680bf2de1dfec43b85e05893cf0fe23e13 /src/port/snprintf.c | |
parent | 9f20f2fc43f7dbe5a60958bc41f24130957560a3 (diff) |
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/port/snprintf.c')
-rw-r--r-- | src/port/snprintf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/port/snprintf.c b/src/port/snprintf.c index e655ce35b73..c10a82a2884 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 |