aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/stubs/hash.h
diff options
context:
space:
mode:
authorBrad Larson <bklarson@gmail.com>2017-07-12 14:45:19 -0500
committerBrad Larson <bklarson@gmail.com>2017-07-12 14:45:19 -0500
commit81142e162b7eea2c3f3483a11ce13a7fb5c20b88 (patch)
treeb82c2c848868dfeb93667b48a75ba3670aad1d00 /src/google/protobuf/stubs/hash.h
parent727c0dc1fae6c7b72f59fb29f47a52f133618461 (diff)
downloadprotobuf-81142e162b7eea2c3f3483a11ce13a7fb5c20b88.tar.gz
protobuf-81142e162b7eea2c3f3483a11ce13a7fb5c20b88.tar.bz2
protobuf-81142e162b7eea2c3f3483a11ce13a7fb5c20b88.zip
Fix build when using -Werror=undef
Correct a couple places where macros were being checked when they might not exist in some cases. Fixes #3356.
Diffstat (limited to 'src/google/protobuf/stubs/hash.h')
-rw-r--r--src/google/protobuf/stubs/hash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/stubs/hash.h b/src/google/protobuf/stubs/hash.h
index 5924de98..612b5861 100644
--- a/src/google/protobuf/stubs/hash.h
+++ b/src/google/protobuf/stubs/hash.h
@@ -42,7 +42,7 @@
#define GOOGLE_PROTOBUF_HAVE_HASH_SET 1
// Use C++11 unordered_{map|set} if available.
-#if ((_LIBCPP_STD_VER >= 11) || \
+#if ((defined(_LIBCPP_STD_VER) && _LIBCPP_STD_VER >= 11) || \
(((__cplusplus >= 201103L) || defined(__GXX_EXPERIMENTAL_CXX0X)) && \
(__GLIBCXX__ > 20090421)))
# define GOOGLE_PROTOBUF_HAS_CXX11_HASH