summaryrefslogtreecommitdiffstats
path: root/src/hash_map.h
diff options
context:
space:
mode:
authorSergey Nenakhov <nenakhov.sergey@gmail.com>2011-04-23 21:09:45 (GMT)
committerEvan Martin <martine@danga.com>2011-04-23 21:09:45 (GMT)
commitc5ec74ce922b1c2205e8a75929e987e102d48ad3 (patch)
tree506b098cc7caa50366b7ce72fdfb541d551825d8 /src/hash_map.h
parent83ca301bb17019f8344bd335796f58d88bf9506f (diff)
downloadNinja-c5ec74ce922b1c2205e8a75929e987e102d48ad3.zip
Ninja-c5ec74ce922b1c2205e8a75929e987e102d48ad3.tar.gz
Ninja-c5ec74ce922b1c2205e8a75929e987e102d48ad3.tar.bz2
[windows] extend hash_map.h for Windows hash_map
Diffstat (limited to 'src/hash_map.h')
-rw-r--r--src/hash_map.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/hash_map.h b/src/hash_map.h
index dd63c01..346a34e 100644
--- a/src/hash_map.h
+++ b/src/hash_map.h
@@ -15,6 +15,13 @@
#ifndef NINJA_MAP_H_
#define NINJA_MAP_H_
+#ifdef _MSC_VER
+#include <hash_map>
+
+using stdext::hash_map;
+
+#else
+
#include <ext/hash_map>
using __gnu_cxx::hash_map;
@@ -28,4 +35,6 @@ struct hash<std::string> {
};
}
+#endif
+
#endif // NINJA_MAP_H_