Skip to content

Commit b42b629

Browse files
more precise version that only fixes it for the mac
1 parent 6497a9a commit b42b629

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/include/Rcpp/platform/compiler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
// Check TR1 Headers
117117
#if defined(__INTEL_COMPILER) || (defined(__GNUC__) && !defined(__clang__))
118118
#if defined(__GLIBCXX__)
119-
#if GCC_VERSION >= 40201
119+
#if GCC_VERSION >= 40400 || ( GCC_VERSION >= 40201 && defined(__APPLE__) )
120120
#define HAS_TR1_UNORDERED_MAP
121121
#define HAS_TR1_UNORDERED_SET
122122
#endif

0 commit comments

Comments
 (0)