Skip to content

Commit

Permalink
Merge pull request #766 from pkasting/hash
Browse files Browse the repository at this point in the history
Refine check for unordered_{map|set} availability.
  • Loading branch information
xfxyjwf committed Sep 10, 2015
2 parents e61ff47 + f5a3325 commit c8c5fed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/google/protobuf/stubs/hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
#define GOOGLE_PROTOBUF_HAVE_HASH_MAP 1
#define GOOGLE_PROTOBUF_HAVE_HASH_SET 1

// Use C++11 unordered_{map|set} if available. Otherwise, libc++ always support
// unordered_{map|set}
#if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X) || \
defined(_LIBCPP_VERSION)
// Use C++11 unordered_{map|set} if available.
#if ((_LIBCPP_STD_VER >= 11) || \
(((__cplusplus >= 201103L) || defined(__GXX_EXPERIMENTAL_CXX0X)) && \
(__GLIBCXX__ > 20090421)))
# define GOOGLE_PROTOBUF_HAS_CXX11_HASH

// For XCode >= 4.6: the compiler is clang with libc++.
Expand Down

0 comments on commit c8c5fed

Please sign in to comment.