mirror of
https://github.com/minetest/minetestmapper.git
synced 2025-07-05 01:50:21 +02:00
Automatically use C++11 features when available and remove USE_CXX11 flag
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
#include <iosfwd>
|
||||
#include <list>
|
||||
#include <config.h>
|
||||
#if USE_CXX11
|
||||
#if __cplusplus >= 201103L
|
||||
#include <unordered_map>
|
||||
#include <unordered_set>
|
||||
#else
|
||||
@ -43,7 +43,7 @@ struct ColorEntry {
|
||||
class TileGenerator
|
||||
{
|
||||
private:
|
||||
#if USE_CXX11
|
||||
#if __cplusplus >= 201103L
|
||||
typedef std::unordered_map<std::string, ColorEntry> ColorMap;
|
||||
typedef std::unordered_map<int, std::string> NameMap;
|
||||
typedef std::unordered_set<std::string> NameSet;
|
||||
|
Reference in New Issue
Block a user