mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Ensure std::unordered_ will be used on supported MSVC compilers
This commit is contained in:
parent
ad163ee5c3
commit
3de9ae4e60
1 changed files with 8 additions and 0 deletions
|
@ -21,6 +21,14 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
#define MT_CPP11CONTAINER_HEADER
|
#define MT_CPP11CONTAINER_HEADER
|
||||||
|
|
||||||
#if __cplusplus >= 201103L
|
#if __cplusplus >= 201103L
|
||||||
|
#define USE_UNORDERED_CONTAINERS
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if _MSC_VER >= 1800
|
||||||
|
#define USE_UNORDERED_CONTAINERS
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_UNORDERED_CONTAINERS
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include <unordered_set>
|
#include <unordered_set>
|
||||||
#define UNORDERED_MAP std::unordered_map
|
#define UNORDERED_MAP std::unordered_map
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue