diff options
-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_ |