aboutsummaryrefslogtreecommitdiff
path: root/include/Support/slist
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/slist
parenteb093fbf6fd2878c842f2f215362597475ef1817 (diff)
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/slist')
-rw-r--r--include/Support/slist17
1 files changed, 10 insertions, 7 deletions
diff --git a/include/Support/slist b/include/Support/slist
index 71670e6af2..31c5ce809b 100644
--- a/include/Support/slist
+++ b/include/Support/slist
@@ -10,6 +10,8 @@
#ifndef SUPPORT_SLIST
#define SUPPORT_SLIST
+#include "Config/config.h"
+
// Compiler Support Matrix
//
// Version Namespace Header File
@@ -17,18 +19,19 @@
// 3.0.4 std ext/slist
// 3.1 __gnu_cxx ext/slist
//
-#if __GNUC__ == 3
+
+#ifdef HAVE_EXT_SLIST
#include <ext/slist>
+#else
+#include <slist>
+#endif
-#if __GNUC_MINOR__ == 0
+#if HAVE_EXT_SLIST == std
using std::slist;
-#else
-using __gnu_cxx::slist;
#endif
-#else
-// GCC 2.x
-#include <slist>
+#if HAVE_EXT_SLIST == gnu
+using __gnu_cxx::slist;
#endif
#endif