diff options
Diffstat (limited to 'include/Support/slist')
-rw-r--r-- | include/Support/slist | 17 |
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 |