diff options
author | Sergey Nenakhov <nenakhov.sergey@gmail.com> | 2011-04-23 21:09:45 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-04-23 21:09:45 (GMT) |
commit | c5ec74ce922b1c2205e8a75929e987e102d48ad3 (patch) | |
tree | 506b098cc7caa50366b7ce72fdfb541d551825d8 /src | |
parent | 83ca301bb17019f8344bd335796f58d88bf9506f (diff) | |
download | Ninja-c5ec74ce922b1c2205e8a75929e987e102d48ad3.zip Ninja-c5ec74ce922b1c2205e8a75929e987e102d48ad3.tar.gz Ninja-c5ec74ce922b1c2205e8a75929e987e102d48ad3.tar.bz2 |
[windows] extend hash_map.h for Windows hash_map
Diffstat (limited to 'src')
-rw-r--r-- | src/hash_map.h | 9 |
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_ |