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 c036edb7b3
commit ff8ca3b04c
1 changed files with 3 additions and 0 deletions

View File

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