changing dbHash macro from __APPLE__ to __EXT_HASH_DEPRECATED

This commit is contained in:
Thomas Ferreira de Lima 2018-08-01 22:31:09 -04:00
parent 51e377cc87
commit a3234e2645
No known key found for this signature in database
GPG Key ID: 43E98870EAA0A86E
1 changed files with 6 additions and 2 deletions

View File

@ -23,7 +23,11 @@
#ifndef HDR_dbHash
#define HDR_dbHash
#if defined(__APPLE__) // clang compiler complains about deprecation warning on ext/hash_map and ext/hash_set
#if defined(__APPLE__)
#define __EXT_HASH_DEPRECATED
#endif
#if defined(__EXT_HASH_DEPRECATED) // clang compiler complains about deprecation warning on ext/hash_map and ext/hash_set
# include <unordered_map>
# include <unordered_set>
# define DB_HASH_NAMESPACE std
@ -104,7 +108,7 @@ namespace DB_HASH_NAMESPACE
};
#endif
#if defined(__APPLE__)
#if defined(__EXT_HASH_DEPRECATED)
template<typename _Key, typename _Tp>
using hash_map = unordered_map<_Key, _Tp>;
template<typename _Value>