Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Put back <float.h> in a few files that need it for _isnan().
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 8 Mar 2017 20:38:26 +0000 (15:38 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 8 Mar 2017 20:38:34 +0000 (15:38 -0500)
Further fallout from commit c29aff959: there are some files that need
<float.h>, and were getting it from datatype/timestamp.h, but it was not
apparent in my (tgl's) testing because the requirement for <float.h>
exists only on certain Windows toolchains.

Report and patch by David Rowley.

Discussion: https://postgr.es/m/CAKJS1f-BHceaFzZScFapDV48gUVM2CAOBfhkgffdqXzFb+kwew@mail.gmail.com

src/backend/access/gist/gistproc.c
src/backend/access/gist/gistutil.c
src/backend/utils/adt/orderedsetaggs.c
src/backend/utils/adt/selfuncs.c

index ffb1d772ad9ae1a621cc955648d842134331ea3f..15b89fd8ade73bbbb68c382c4d56fc5073f1a834 100644 (file)
@@ -17,6 +17,7 @@
  */
 #include "postgres.h"
 
+#include <float.h>
 #include <math.h>
 
 #include "access/gist.h"
index 75845ba0e761d531ad1bd1d5fa391560aa5aa252..cbdaec9d2b34d73a60c7682e3486836212cdc50f 100644 (file)
@@ -13,6 +13,7 @@
  */
 #include "postgres.h"
 
+#include <float.h>
 #include <math.h>
 
 #include "access/gist_private.h"
index f9f18f2cc627edddc98a888e3121bf62e4f315a2..e462fbd539d547bc3e13f4f9c355ef598480042b 100644 (file)
@@ -14,6 +14,7 @@
  */
 #include "postgres.h"
 
+#include <float.h>
 #include <math.h>
 
 #include "catalog/pg_aggregate.h"
index 8b05e8f9f79e34e9a0e108380fbc440183637cae..a04fd7bc905ce5191ae48a104371a4e92a59f07b 100644 (file)
@@ -98,6 +98,7 @@
 #include "postgres.h"
 
 #include <ctype.h>
+#include <float.h>
 #include <math.h>
 
 #include "access/gin.h"