[geos-commits] r3370 - in trunk: include/geos src/algorithm

svn_geos at osgeo.org svn_geos at osgeo.org
Wed May 18 15:59:50 EDT 2011


Author: strk
Date: 2011-05-18 12:59:50 -0700 (Wed, 18 May 2011)
New Revision: 3370

Modified:
   trunk/include/geos/platform.h.in
   trunk/src/algorithm/RobustDeterminant.cpp
Log:
Do not assume isfinite is in std:: namespace to fix #444; Have RobustDeterminant use a broad 'using namespace std' to fix #442 in another way.

Modified: trunk/include/geos/platform.h.in
===================================================================
--- trunk/include/geos/platform.h.in	2011-05-17 20:44:35 UTC (rev 3369)
+++ trunk/include/geos/platform.h.in	2011-05-18 19:59:50 UTC (rev 3370)
@@ -74,12 +74,12 @@
 
 
 #if defined(HAVE_FINITE) && !defined(HAVE_ISFINITE)
-# define FINITE(x) (std::finite(x))
+# define FINITE(x) (finite(x))
 #else
 # if defined(_MSC_VER)
 #  define FINITE(x) _finite(static_cast<double>(x))    
 # else
-#  define FINITE(x) (std::isfinite(x))
+#  define FINITE(x) (isfinite(x))
 # endif
 #endif
 

Modified: trunk/src/algorithm/RobustDeterminant.cpp
===================================================================
--- trunk/src/algorithm/RobustDeterminant.cpp	2011-05-17 20:44:35 UTC (rev 3369)
+++ trunk/src/algorithm/RobustDeterminant.cpp	2011-05-18 19:59:50 UTC (rev 3370)
@@ -30,6 +30,8 @@
 #pragma warning(disable : 4127)
 #endif
 
+using namespace std; // for isfinite..
+
 namespace geos {
 namespace algorithm { // geos.algorithm
 



More information about the geos-commits mailing list