aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/stubs/hash.h
diff options
context:
space:
mode:
authorBo Yang <teboring@google.com>2015-09-15 18:25:02 -0700
committerBo Yang <teboring@google.com>2015-10-04 13:22:54 -0700
commit7c14dc837b2fcd61ed244ced90debeb4b42d1119 (patch)
treeebaea9d0a20b315f4f372136200494d4aff3936c /src/google/protobuf/stubs/hash.h
parentfbabf987e671aa37d11e1163e0175f99b32df5fe (diff)
downloadprotobuf-7c14dc837b2fcd61ed244ced90debeb4b42d1119.tar.gz
protobuf-7c14dc837b2fcd61ed244ced90debeb4b42d1119.tar.bz2
protobuf-7c14dc837b2fcd61ed244ced90debeb4b42d1119.zip
Down-integrate internal bug fixing changes.
Diffstat (limited to 'src/google/protobuf/stubs/hash.h')
-rwxr-xr-xsrc/google/protobuf/stubs/hash.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/google/protobuf/stubs/hash.h b/src/google/protobuf/stubs/hash.h
index e7b3771f..58334322 100755
--- a/src/google/protobuf/stubs/hash.h
+++ b/src/google/protobuf/stubs/hash.h
@@ -41,9 +41,14 @@
#define GOOGLE_PROTOBUF_HAVE_HASH_MAP 1
#define GOOGLE_PROTOBUF_HAVE_HASH_SET 1
+// Android
+#if defined(__ANDROID__)
+# undef GOOGLE_PROTOBUF_HAVE_HASH_MAP
+# undef GOOGLE_PROTOBUF_HAVE_HASH_MAP
+
// Use C++11 unordered_{map|set} if available.
-#if ((_LIBCPP_STD_VER >= 11) || \
- (((__cplusplus >= 201103L) || defined(__GXX_EXPERIMENTAL_CXX0X)) && \
+#elif ((_LIBCPP_STD_VER >= 11) || \
+ (((__cplusplus >= 201103L) || defined(__GXX_EXPERIMENTAL_CXX0X)) && \
(__GLIBCXX__ > 20090421)))
# define GOOGLE_PROTOBUF_HAS_CXX11_HASH