Commit ff8ca3b0 authored by Andres Freund's avatar Andres Freund

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.
parent c036edb7
...@@ -33,6 +33,9 @@ ...@@ -33,6 +33,9 @@
#include "c.h" #include "c.h"
#include <ctype.h> #include <ctype.h>
#ifdef _MSC_VER
#include <float.h> /* for _isnan */
#endif
#include <limits.h> #include <limits.h>
#include <math.h> #include <math.h>
#ifndef WIN32 #ifndef WIN32
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment