From: Andres Freund Date: Wed, 4 Feb 2015 12:27:31 +0000 (+0100) Subject: Add missing float.h include to snprintf.c. X-Git-Tag: REL9_2_11~82 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eae798ae1d98f8f62cc0b93a2c6972985f070446;p=thirdparty%2Fpostgresql.git 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. --- 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 +#ifdef _MSC_VER +#include /* for _isnan */ +#endif #include #include #ifndef WIN32