[Rcpp-commits] r4474 - pkg/Rcpp/inst/include/Rcpp/platform

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Sep 12 16:02:25 CEST 2013


Author: romain
Date: 2013-09-12 16:02:24 +0200 (Thu, 12 Sep 2013)
New Revision: 4474

Modified:
   pkg/Rcpp/inst/include/Rcpp/platform/compiler.h
Log:
more precise version that only fixes it for the mac

Modified: pkg/Rcpp/inst/include/Rcpp/platform/compiler.h
===================================================================
--- pkg/Rcpp/inst/include/Rcpp/platform/compiler.h	2013-09-12 13:26:42 UTC (rev 4473)
+++ pkg/Rcpp/inst/include/Rcpp/platform/compiler.h	2013-09-12 14:02:24 UTC (rev 4474)
@@ -116,7 +116,7 @@
 // Check TR1 Headers
 #if defined(__INTEL_COMPILER) || (defined(__GNUC__) && !defined(__clang__))
     #if defined(__GLIBCXX__)
-        #if GCC_VERSION >= 40201
+        #if GCC_VERSION >= 40400 || ( GCC_VERSION >= 40201 && defined(__APPLE__) )
             #define HAS_TR1_UNORDERED_MAP
             #define HAS_TR1_UNORDERED_SET
         #endif



More information about the Rcpp-commits mailing list