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

svn_geos at osgeo.org svn_geos at osgeo.org
Wed Nov 4 12:30:49 PST 2015


Author: mloskot
Date: 2015-11-04 12:30:49 -0800 (Wed, 04 Nov 2015)
New Revision: 4114

Modified:
   trunk/include/geos/platform.h.cmake
Log:
Add #define NOMINMAX for Visual C++

Modified: trunk/include/geos/platform.h.cmake
===================================================================
--- trunk/include/geos/platform.h.cmake	2015-11-03 09:17:42 UTC (rev 4113)
+++ trunk/include/geos/platform.h.cmake	2015-11-04 20:30:49 UTC (rev 4114)
@@ -19,6 +19,12 @@
 #ifndef GEOS_PLATFORM_H_INCLUDED
 #define GEOS_PLATFORM_H_INCLUDED
 
+#ifdef _MSC_VER
+#ifndef NOMINMAX
+#define NOMINMAX 1
+#endif
+#endif
+
 /* Disable inclusion of platform.h not generated by CMake */
 #define GEOS_PLATFORM_H 1
 



More information about the geos-commits mailing list