aboutsummaryrefslogtreecommitdiffstats
path: root/include/Support/hash_map
diff options
context:
space:
mode:
authorJohn Criswell <criswell@uiuc.edu>2003-06-30 21:59:07 +0000
committerJohn Criswell <criswell@uiuc.edu>2003-06-30 21:59:07 +0000
commit7a73b80b9052136c8cd2234eb3433a07df7cf38e (patch)
treef7be65b4a1f3c25d8f5dfc42f6ea73f7bbfec00d /include/Support/hash_map
parenteb093fbf6fd2878c842f2f215362597475ef1817 (diff)
downloadexternal_llvm-7a73b80b9052136c8cd2234eb3433a07df7cf38e.zip
external_llvm-7a73b80b9052136c8cd2234eb3433a07df7cf38e.tar.gz
external_llvm-7a73b80b9052136c8cd2234eb3433a07df7cf38e.tar.bz2
Merged in autoconf branch. This provides configuration via the autoconf
system. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7014 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/Support/hash_map')
-rw-r--r--include/Support/hash_map22
1 files changed, 12 insertions, 10 deletions
diff --git a/include/Support/hash_map b/include/Support/hash_map
index 3c50e4b..ce4c42f 100644
--- a/include/Support/hash_map
+++ b/include/Support/hash_map
@@ -17,23 +17,25 @@
// 3.0.4 std ext/hash_map
// 3.1 __gnu_cxx ext/hash_map
//
-#if __GNUC__ == 3
-#include <ext/hash_map>
-#ifndef HASH_NAMESPACE
-#if __GNUC_MINOR__ == 0
-#define HASH_NAMESPACE std
-#else
+#include "Config/config.h"
+
+#ifdef HAVE_GNU_EXT_HASH_MAP
+
+#include <ext/hash_map>
#define HASH_NAMESPACE __gnu_cxx
-#endif
-#endif
#else
-#include <hash_map>
-#ifndef HASH_NAMESPACE
+#ifdef HAVE_STD_EXT_HASH_MAP
+#include <ext/hash_map>
#define HASH_NAMESPACE std
+
+#else
+#include <hash_map>
+#define HASH_NAMESPACE
#endif
+
#endif
using HASH_NAMESPACE::hash_map;