From a3234e26451a10be170183899575c83fff5184d5 Mon Sep 17 00:00:00 2001 From: Thomas Ferreira de Lima Date: Wed, 1 Aug 2018 22:31:09 -0400 Subject: [PATCH] changing dbHash macro from __APPLE__ to __EXT_HASH_DEPRECATED --- src/db/db/dbHash.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/db/db/dbHash.h b/src/db/db/dbHash.h index 6a39a9cb5..4338d3027 100644 --- a/src/db/db/dbHash.h +++ b/src/db/db/dbHash.h @@ -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 # include # define DB_HASH_NAMESPACE std @@ -104,7 +108,7 @@ namespace DB_HASH_NAMESPACE }; #endif -#if defined(__APPLE__) +#if defined(__EXT_HASH_DEPRECATED) template using hash_map = unordered_map<_Key, _Tp>; template