diff --git a/stl/inc/xhash b/stl/inc/xhash index f3ea7f57010..455373f7755 100644 --- a/stl/inc/xhash +++ b/stl/inc/xhash @@ -9,13 +9,16 @@ #include #if _STL_COMPILER_PREPROCESSOR #include -#include -#include #include #include #include #include + +#ifdef _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS +#include +#include #include +#endif // _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS #if _HAS_CXX17 #include @@ -28,6 +31,7 @@ _STL_DISABLE_CLANG_WARNINGS #pragma push_macro("new") #undef new +#ifdef _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS namespace stdext { using _STD basic_string; using _STD less; @@ -86,10 +90,9 @@ namespace stdext { _Pr comp{}; // the comparator object }; } // namespace stdext +#endif // _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS _STD_BEGIN -using stdext::hash_compare; // TRANSITION, protobuf used this until v3.7.0, released Feb 28, 2019 - template struct _Uhash_choose_transparency { // transparency selector for non-transparent hashed containers