summaryrefslogtreecommitdiffstats
path: root/testing/chromium.patch
blob: 26b566294b25f0f306485d9c0929f76283a6cb90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff -ru gmock.orig/include/gmock/internal/gmock-port.h gmock/include/gmock/internal/gmock-port.h
--- gmock.orig/include/gmock/internal/gmock-port.h	2009-05-22 23:58:41.000000000 -0700
+++ gmock/include/gmock/internal/gmock-port.h	2009-05-23 00:49:01.000000000 -0700
@@ -54,9 +54,14 @@
 // GCC 4.0+ implements tr1/tuple in the <tr1/tuple> header.  This does
 // not conform to the TR1 spec, which requires the header to be <tuple>.
 #include <tr1/tuple>
+#elif defined(_MSC_VER) && _MSC_VER < 1500
+// For Visual Studio older than 2008, we redirect directly to boost tuple
+// searching from boost's root.  This is to avoid extra dirtying of the
+// compiler include paths.
+#include "boost/tr1/tr1/tuple"
 #else
-// If the compiler is not GCC 4.0+, we assume the user is using a
-// spec-conforming TR1 implementation.
+// If the compiler is neither GCC 4.0+, nor Visual Studio 2008, we assume the
+// user is using a spec-conforming TR1 implementation.
 #include <tuple>
 #endif  // __GNUC__