Made error message more comprehensible.
[oota-llvm.git] / include / Support / slist
1 //===-- Support/slist - "Portable" wrapper around slist ---------*- C++ -*-===//
2 //
3 // This file provides a wrapper around the mysterious <slist> header file that
4 // seems to move around between GCC releases into and out of namespaces at will.
5 // #including this header will cause hash_map to be available in the global
6 // namespace.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef SUPPORT_SLIST
11 #define SUPPORT_SLIST
12
13 #include "Config/config.h"
14
15 // Compiler Support Matrix
16 //
17 // Version   Namespace   Header File
18 //  2.95.x       ::        slist
19 //  3.0.4       std      ext/slist
20 //  3.1      __gnu_cxx   ext/slist
21 //
22
23 #ifdef HAVE_EXT_SLIST
24 #include <ext/slist>
25 #else
26 #include <slist>
27 #endif
28
29 #if HAVE_EXT_SLIST == std
30 using std::slist;
31 #endif
32
33 #if HAVE_EXT_SLIST == gnu
34 using __gnu_cxx::slist;
35 #endif
36
37 #endif