diff options
author | Peter Newman <peternewman@users.noreply.github.com> | 2015-12-15 01:32:27 +0000 |
---|---|---|
committer | Peter Newman <peternewman@users.noreply.github.com> | 2015-12-15 01:32:27 +0000 |
commit | 1808e8a479e53ad48832cf409f8b1d96694a75cb (patch) | |
tree | fd26899146069d3408d90b7f6a9e78e5547524cf | |
parent | dc633398af5c87e1fe1ffcedaebd697c4775c918 (diff) | |
download | protobuf-1808e8a479e53ad48832cf409f8b1d96694a75cb.tar.gz protobuf-1808e8a479e53ad48832cf409f8b1d96694a75cb.tar.bz2 protobuf-1808e8a479e53ad48832cf409f8b1d96694a75cb.zip |
Add the docs claimed define for HAVE_UNORDERED_MAP
Make the code match what the docs claimed, to return a define for HAVE_UNORDERED_MAP
-rw-r--r-- | m4/stl_hash.m4 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/m4/stl_hash.m4 b/m4/stl_hash.m4 index 0722b14a..dd77caab 100644 --- a/m4/stl_hash.m4 +++ b/m4/stl_hash.m4 @@ -53,6 +53,9 @@ AC_DEFUN([AC_CXX_STL_HASH], if test -n "$ac_cv_cxx_hash_map"; then AC_DEFINE(HAVE_HASH_MAP, 1, [define if the compiler has hash_map]) AC_DEFINE(HAVE_HASH_SET, 1, [define if the compiler has hash_set]) + if test "$ac_cv_cxx_hash_map_class" = "unordered_map"; then + AC_DEFINE(HAVE_UNORDERED_MAP, 1, [define if the hash_map class is unordered_map]) + fi AC_DEFINE_UNQUOTED(HASH_MAP_H,$ac_cv_cxx_hash_map, [the location of <unordered_map> or <hash_map>]) AC_DEFINE_UNQUOTED(HASH_SET_H,$ac_cv_cxx_hash_set, |