summaryrefslogtreecommitdiff
path: root/include/Support/hash_map
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-24 22:20:00 +0000
committerChris Lattner <sabre@nondot.org>2002-07-24 22:20:00 +0000
commit8dc67168ccbd09821ff6d963b26461e9b47028e7 (patch)
tree2c8a8e915251e5cd2d41f78b7719eed0d9e32c8d /include/Support/hash_map
parentfe8041ae397ebbcc311469aa39dfb79f8191b412 (diff)
downloadllvm-8dc67168ccbd09821ff6d963b26461e9b47028e7.tar.gz
llvm-8dc67168ccbd09821ff6d963b26461e9b47028e7.tar.bz2
llvm-8dc67168ccbd09821ff6d963b26461e9b47028e7.tar.xz
GCC 3.1 fixes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3066 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/Support/hash_map')
-rw-r--r--include/Support/hash_map10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/Support/hash_map b/include/Support/hash_map
index d6a0ac0faf..af727c42cf 100644
--- a/include/Support/hash_map
+++ b/include/Support/hash_map
@@ -12,9 +12,17 @@
#if __GNUC__ == 3
#include <ext/hash_map>
-using __gnu_cxx::hash_map;
+#ifndef HASH_NAMESPACE
+#define HASH_NAMESPACE __gnu_cxx
+#endif
#else
#include <hash_map>
+#ifndef HASH_NAMESPACE
+#define HASH_NAMESPACE std
+#endif
#endif
+using HASH_NAMESPACE::hash_map;
+using HASH_NAMESPACE::hash;
+
#endif