mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
7a73b80b90
system. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7014 91177308-0d34-0410-b5e6-96231b3b80d8
38 lines
857 B
C++
38 lines
857 B
C++
//===-- Support/slist - "Portable" wrapper around slist ---------*- C++ -*-===//
|
|
//
|
|
// This file provides a wrapper around the mysterious <slist> header file that
|
|
// seems to move around between GCC releases into and out of namespaces at will.
|
|
// #including this header will cause hash_map to be available in the global
|
|
// namespace.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef SUPPORT_SLIST
|
|
#define SUPPORT_SLIST
|
|
|
|
#include "Config/config.h"
|
|
|
|
// Compiler Support Matrix
|
|
//
|
|
// Version Namespace Header File
|
|
// 2.95.x :: slist
|
|
// 3.0.4 std ext/slist
|
|
// 3.1 __gnu_cxx ext/slist
|
|
//
|
|
|
|
#ifdef HAVE_EXT_SLIST
|
|
#include <ext/slist>
|
|
#else
|
|
#include <slist>
|
|
#endif
|
|
|
|
#if HAVE_EXT_SLIST == std
|
|
using std::slist;
|
|
#endif
|
|
|
|
#if HAVE_EXT_SLIST == gnu
|
|
using __gnu_cxx::slist;
|
|
#endif
|
|
|
|
#endif
|