diff options
author | Andres Freund | 2015-02-04 12:27:31 +0000 |
---|---|---|
committer | Andres Freund | 2015-02-04 12:27:31 +0000 |
commit | ff8ca3b04c15eace1de1a7a66e3a05426b07b773 (patch) | |
tree | b3e40e2acbdcb6204b8a5ee3153d7c3342d536b9 /src/port/snprintf.c | |
parent | c036edb7b35fda18b93a6eacac5b14fcee4693a4 (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 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 |