GCC 3.1 fixes
[oota-llvm.git] / include / Support / hash_map
1 //===-- Support/hash_map - "Portable" wrapper around hash_map ---*- C++ -*-===//
2 //
3 // This file provides a wrapper around the mysterious <hash_map> header file
4 // that seems to move around between GCC releases into and out of namespaces at
5 // will.  #including this header will cause hash_map to be available in the
6 // global namespace.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef SUPPORT_HASHMAP_H
11 #define SUPPORT_HASHMAP_H
12
13 #if __GNUC__ == 3
14 #include <ext/hash_map>
15 #ifndef HASH_NAMESPACE
16 #define HASH_NAMESPACE __gnu_cxx
17 #endif
18 #else
19 #include <hash_map>
20 #ifndef HASH_NAMESPACE
21 #define HASH_NAMESPACE std
22 #endif
23 #endif
24
25 using HASH_NAMESPACE::hash_map;
26 using HASH_NAMESPACE::hash;
27
28 #endif