[geos-commits] r4227 - in branches/3.4: . include/geos

Sandro Santilli strk at kbt.io
Thu Jul 14 04:27:38 PDT 2016


Author: strk
Date: 2016-07-14 04:27:38 -0700 (Thu, 14 Jul 2016)
New Revision: 4227

Modified:
   branches/3.4/NEWS
   branches/3.4/configure.in
   branches/3.4/include/geos/platform.h.in
Log:
Look for isnan in std:: namespace

Fully qualify isnan call when HAVE_ISNAN is defined
Tested with gcc 4.8.4

Fixes build with GCC-5.3.0 and higher.
Closes #784

Modified: branches/3.4/NEWS
===================================================================
--- branches/3.4/NEWS	2016-07-14 11:27:30 UTC (rev 4226)
+++ branches/3.4/NEWS	2016-07-14 11:27:38 UTC (rev 4227)
@@ -19,6 +19,7 @@
  - Fix compilation issues while building with Visual C++ (#701)
  - Fix support of PHP bindings for version < 5.4.0 (#709)
  - Fix incorrect return from prepared multipoint intersects (#764)
+ - Fix build against GCC 3.5.0+ (#784)
 
 Changes in 3.4.2
 2013-08-25

Modified: branches/3.4/configure.in
===================================================================
--- branches/3.4/configure.in	2016-07-14 11:27:30 UTC (rev 4226)
+++ branches/3.4/configure.in	2016-07-14 11:27:38 UTC (rev 4227)
@@ -197,7 +197,7 @@
 AC_LANG_PUSH([C++])
 AC_CACHE_CHECK([for isnan], ac_cv_isnan,
  [AC_TRY_LINK([#include <cmath>],
- [double x; int y; y = isnan(x);],
+ [double x; int y; y = std::isnan(x);],
  ac_cv_isnan=yes,
  ac_cv_isnan=no
 )])

Modified: branches/3.4/include/geos/platform.h.in
===================================================================
--- branches/3.4/include/geos/platform.h.in	2016-07-14 11:27:30 UTC (rev 4226)
+++ branches/3.4/include/geos/platform.h.in	2016-07-14 11:27:38 UTC (rev 4227)
@@ -86,7 +86,7 @@
 #endif
 
 #if defined(HAVE_ISNAN)
-# define ISNAN(x) (isnan(x))
+# define ISNAN(x) (std::isnan(x))
 #else
 # if defined(_MSC_VER)
 #  define ISNAN(x) _isnan(x)



More information about the geos-commits mailing list