postgres.git / summary / log / commit / refs

commit    742734d2b54005f228655f0733e869b16ec6cb2b
Author:   Andres Freund <andres@anarazel.de>
Date:     Wed Feb 04 12:27:31 2015 +0000
First released in: 9.5.0, 9.0.20, 9.1.16, 9.2.11, 9.3.7, 9.4.2

    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.


src/port/snprintf.c | 3 +++ 1 file changed, 3 insertions(+) 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 [parent: 7c21a8aca39c]