[geos-commits] r2955 - trunk/include/geos

svn_geos at osgeo.org svn_geos at osgeo.org
Fri Mar 26 08:35:12 EDT 2010


Author: mloskot
Date: 2010-03-26 08:35:10 -0400 (Fri, 26 Mar 2010)
New Revision: 2955

Modified:
   trunk/include/geos/platform.h.vc
Log:
platform.h.vc: disable min/max macros substitution

Modified: trunk/include/geos/platform.h.vc
===================================================================
--- trunk/include/geos/platform.h.vc	2010-03-26 12:06:02 UTC (rev 2954)
+++ trunk/include/geos/platform.h.vc	2010-03-26 12:35:10 UTC (rev 2955)
@@ -26,6 +26,10 @@
 #define WIN32
 #endif
 
+#ifndef NOMINMAX
+#define NOMINMAX
+#endif
+
 #include <float.h>
 
 // We need M_PI, but on MSVC you need to define _USE_MATH_DEFINES before
@@ -47,7 +51,7 @@
 #define DoubleInfinity std::numeric_limits<double>::infinity()
 #define DoubleNegInfinity -std::numeric_limits<double>::infinity()
 
-#define DoubleMax std::numeric_limits<double>::max()
+#define DoubleMax (std::numeric_limits<double>::max)()
 
 #define FINITE(x) _finite(static_cast<double>(x))
 #define finite(x) _finite(static_cast<double>(x))



More information about the geos-commits mailing list