diff options
author | kosak <kosak@google.com> | 2015-07-17 23:08:48 +0000 |
---|---|---|
committer | kosak <kosak@google.com> | 2015-07-17 23:08:48 +0000 |
commit | fe95bc332d92c6e3f5c2e07fd681bd3549b77374 (patch) | |
tree | a6217cdc639b43937500f22ada5f21e091c48d76 /test | |
parent | 060b7452ec0f3f0a7fa09914e4044349dc9990c6 (diff) | |
download | googletest-fe95bc332d92c6e3f5c2e07fd681bd3549b77374.tar.gz googletest-fe95bc332d92c6e3f5c2e07fd681bd3549b77374.tar.bz2 googletest-fe95bc332d92c6e3f5c2e07fd681bd3549b77374.zip |
Determine the existence of hash_map/hash_set in gtest-port.h.
Diffstat (limited to 'test')
-rw-r--r-- | test/gtest-printers_test.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/gtest-printers_test.cc b/test/gtest-printers_test.cc index a6636c57..3e97cc24 100644 --- a/test/gtest-printers_test.cc +++ b/test/gtest-printers_test.cc @@ -50,13 +50,13 @@ #include "gtest/gtest.h" -// hash_map and hash_set are available under Visual C++. -#if _MSC_VER -# define GTEST_HAS_HASH_MAP_ 1 // Indicates that hash_map is available. +// hash_map and hash_set are available under Visual C++, or on Linux. +#if GTEST_HAS_HASH_MAP_ # include <hash_map> // NOLINT -# define GTEST_HAS_HASH_SET_ 1 // Indicates that hash_set is available. +#endif // GTEST_HAS_HASH_MAP_ +#if GTEST_HAS_HASH_SET_ # include <hash_set> // NOLINT -#endif // GTEST_OS_WINDOWS +#endif // GTEST_HAS_HASH_SET_ #if GTEST_HAS_STD_FORWARD_LIST_ # include <forward_list> // NOLINT |