Forráskód Böngészése

Try modifying check in hopes of passing upstream build

Peter Kasting 10 éve
szülő
commit
a1be711e96
1 módosított fájl, 3 hozzáadás és 2 törlés
  1. 3 2
      src/google/protobuf/stubs/hash.h

+ 3 - 2
src/google/protobuf/stubs/hash.h

@@ -42,8 +42,9 @@
 #define GOOGLE_PROTOBUF_HAVE_HASH_SET 1
 #define GOOGLE_PROTOBUF_HAVE_HASH_SET 1
 
 
 // Use C++11 unordered_{map|set} if available.
 // Use C++11 unordered_{map|set} if available.
-#if ((__cplusplus >= 201103L) &&                            \
-     ((__GLIBCXX__ > 20090421) || (_LIBCPP_STD_VER >= 11)))
+#if ((_LIBCPP_STD_VER >= 11) ||
+     (((__cplusplus >= 201103L) || defined(__GXX_EXPERIMENTAL_CXX0X)) &&
+      (__GLIBCXX__ > 20090421)))
 # define GOOGLE_PROTOBUF_HAS_CXX11_HASH
 # define GOOGLE_PROTOBUF_HAS_CXX11_HASH
 
 
 // For XCode >= 4.6:  the compiler is clang with libc++.
 // For XCode >= 4.6:  the compiler is clang with libc++.