From: gregorycu Date: Sat, 8 Oct 2016 12:58:47 +0000 (+1100) Subject: Ensure std::unordered_ will be used on supported MSVC compilers X-Git-Tag: 0.4.15~193 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3de9ae4e6054bb420bea8ad5621a0b76552a3621;p=oweals%2Fminetest.git Ensure std::unordered_ will be used on supported MSVC compilers --- diff --git a/src/util/cpp11_container.h b/src/util/cpp11_container.h index f839be19a..7ac2fc371 100644 --- a/src/util/cpp11_container.h +++ b/src/util/cpp11_container.h @@ -21,6 +21,14 @@ with this program; if not, write to the Free Software Foundation, Inc., #define MT_CPP11CONTAINER_HEADER #if __cplusplus >= 201103L +#define USE_UNORDERED_CONTAINERS +#endif + +#if _MSC_VER >= 1800 +#define USE_UNORDERED_CONTAINERS +#endif + +#ifdef USE_UNORDERED_CONTAINERS #include #include #define UNORDERED_MAP std::unordered_map