[geos-commits] r2672 - trunk/tests/xmltester

svn_geos at osgeo.org svn_geos at osgeo.org
Wed Oct 14 08:03:38 EDT 2009


Author: mloskot
Date: 2009-10-14 08:03:37 -0400 (Wed, 14 Oct 2009)
New Revision: 2672

Modified:
   trunk/tests/xmltester/XMLTester.cpp
Log:
Enable use of Stalkwalker only if building with Visual C++ and GEOS_TEST_USE_STACKWALKER is defined.

Modified: trunk/tests/xmltester/XMLTester.cpp
===================================================================
--- trunk/tests/xmltester/XMLTester.cpp	2009-10-13 16:25:42 UTC (rev 2671)
+++ trunk/tests/xmltester/XMLTester.cpp	2009-10-14 12:03:37 UTC (rev 2672)
@@ -63,7 +63,7 @@
 #include <cmath>
 #include <stdexcept>
 
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && defined(GEOS_TEST_USE_STACKWALKER)
 #include <windows.h>
 #include "Stackwalker.h"
 #endif
@@ -1404,7 +1404,7 @@
 	int verbose=0;
 	bool sql_output=false;
 
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && defined(GEOS_TEST_USE_STACKWALKER)
 	InitAllocCheck();
 	{
 #endif
@@ -1457,7 +1457,7 @@
 
 	return tester.getFailuresCount();
 
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && defined(GEOS_TEST_USE_STACKWALKER)
 	}
 	DeInitAllocCheck();
 #endif



More information about the geos-commits mailing list