[Rcpp-commits] r949 - pkg/Rcpp/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sat Mar 27 04:37:31 CET 2010


Author: edd
Date: 2010-03-27 04:37:30 +0100 (Sat, 27 Mar 2010)
New Revision: 949

Modified:
   pkg/Rcpp/src/debugging.cpp
Log:
trying to unbreak windows build by excluding core of debugging.cpp


Modified: pkg/Rcpp/src/debugging.cpp
===================================================================
--- pkg/Rcpp/src/debugging.cpp	2010-03-26 20:15:51 UTC (rev 948)
+++ pkg/Rcpp/src/debugging.cpp	2010-03-27 03:37:30 UTC (rev 949)
@@ -21,17 +21,17 @@
 
 #include <Rcpp.h>
 
-#ifdef __GNUC__
+#if defined(__GNUC__) && !defined(WIN32)
 #include <execinfo.h>
 #include <cxxabi.h>
 
 static std::string demangler_one( const char* input){
-	static std::string buffer ;
-	buffer = input ;
-	buffer.resize( buffer.find_last_of( '+' ) - 1 ) ;
-    buffer.erase( 
-    	buffer.begin(), 
-    	buffer.begin() + buffer.find_last_of( ' ' ) + 1) ;
+    static std::string buffer ;
+    buffer = input ;
+    buffer.resize( buffer.find_last_of( '+' ) - 1 ) ;
+    buffer.erase(
+	 buffer.begin(), 
+	 buffer.begin() + buffer.find_last_of( ' ' ) + 1) ;
     return demangle( buffer) ;
 }
 



More information about the Rcpp-commits mailing list