1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-27 23:21:58 +03:00

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.
This commit is contained in:
Andres Freund
2015-02-04 13:27:31 +01:00
parent 506a519f3a
commit 490a91894f

View File

@ -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