Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:34:48

0001 //  Boost compiler configuration selection header file
0002 
0003 //  (C) Copyright John Maddock 2001 - 2003. 
0004 //  (C) Copyright Jens Maurer 2001 - 2002. 
0005 //  Use, modification and distribution are subject to the 
0006 //  Boost Software License, Version 1.0. (See accompanying file 
0007 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0008 
0009 
0010 //  See http://www.boost.org for most recent version.
0011 
0012 // locate which std lib we are using and define BOOST_STDLIB_CONFIG as needed:
0013 
0014 // First, check if __has_include is available and <version> include can be located,
0015 // otherwise include <cstddef> to determine if some version of STLport is in use as the std lib
0016 // (do not rely on this header being included since users can short-circuit this header 
0017 //  if they know whose std lib they are using.)
0018 #if defined(__cplusplus) && defined(__has_include)
0019 #  if __has_include(<version>)
0020 // It should be safe to include `<version>` when it is present without checking
0021 // the actual C++ language version as it consists solely of macro definitions.
0022 // [version.syn] p1: The header <version> supplies implementation-dependent
0023 // information about the C++ standard library (e.g., version number and release date).
0024 #    include <version>
0025 #  else
0026 #    include <cstddef>
0027 #  endif
0028 #elif defined(__cplusplus)
0029 #  include <cstddef>
0030 #else
0031 #  include <stddef.h>
0032 #endif
0033 
0034 #if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)
0035 // STLPort library; this _must_ come first, otherwise since
0036 // STLport typically sits on top of some other library, we
0037 // can end up detecting that first rather than STLport:
0038 #  define BOOST_STDLIB_CONFIG "boost/config/stdlib/stlport.hpp"
0039 
0040 #else
0041 
0042 // If our std lib was not some version of STLport, and has not otherwise
0043 // been detected, then include <utility> as it is about 
0044 // the smallest of the std lib headers that includes real C++ stuff.
0045 // Some std libs do not include their C++-related macros in <cstddef> 
0046 // so this additional include makes sure we get those definitions.
0047 // Note: do not rely on this header being included since users can short-circuit this 
0048 // #include if they know whose std lib they are using.
0049 #if !defined(__LIBCOMO__) && !defined(__STD_RWCOMPILER_H__) && !defined(_RWSTD_VER)\
0050    && !defined(_LIBCPP_VERSION) && !defined(__GLIBCPP__) && !defined(__GLIBCXX__)\
0051    && !defined(__STL_CONFIG_H) && !defined(__MSL_CPP__) && !defined(__IBMCPP__)\
0052    && !defined(MSIPL_COMPILE_H) && !defined(_YVALS) && !defined(_CPPLIB_VER)
0053 #include <utility>
0054 #endif
0055 
0056 #if defined(__LIBCOMO__)
0057 // Comeau STL:
0058 #define BOOST_STDLIB_CONFIG "boost/config/stdlib/libcomo.hpp"
0059 
0060 #elif defined(__STD_RWCOMPILER_H__) || defined(_RWSTD_VER)
0061 // Rogue Wave library:
0062 #  define BOOST_STDLIB_CONFIG "boost/config/stdlib/roguewave.hpp"
0063 
0064 #elif defined(_LIBCPP_VERSION)
0065 // libc++
0066 #  define BOOST_STDLIB_CONFIG "boost/config/stdlib/libcpp.hpp"
0067 
0068 #elif defined(__GLIBCPP__) || defined(__GLIBCXX__)
0069 // GNU libstdc++ 3
0070 #  define BOOST_STDLIB_CONFIG "boost/config/stdlib/libstdcpp3.hpp"
0071 
0072 #elif defined(__STL_CONFIG_H)
0073 // generic SGI STL
0074 #  define BOOST_STDLIB_CONFIG "boost/config/stdlib/sgi.hpp"
0075 
0076 #elif defined(__MSL_CPP__)
0077 // MSL standard lib:
0078 #  define BOOST_STDLIB_CONFIG "boost/config/stdlib/msl.hpp"
0079 
0080 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__) && defined(__MVS__)
0081 // IBM z/OS XL C/C++
0082 #  define BOOST_STDLIB_CONFIG "boost/config/stdlib/xlcpp_zos.hpp"
0083 
0084 #elif defined(__IBMCPP__)
0085 // take the default VACPP std lib
0086 #  define BOOST_STDLIB_CONFIG "boost/config/stdlib/vacpp.hpp"
0087 
0088 #elif defined(MSIPL_COMPILE_H)
0089 // Modena C++ standard library
0090 #  define BOOST_STDLIB_CONFIG "boost/config/stdlib/modena.hpp"
0091 
0092 #elif (defined(_YVALS) && !defined(__IBMCPP__)) || defined(_CPPLIB_VER)
0093 // Dinkumware Library (this has to appear after any possible replacement libraries):
0094 #  define BOOST_STDLIB_CONFIG "boost/config/stdlib/dinkumware.hpp"
0095 
0096 #elif defined (BOOST_ASSERT_CONFIG)
0097 // this must come last - generate an error if we don't
0098 // recognise the library:
0099 #  error "Unknown standard library - please configure and report the results to boost.org"
0100 
0101 #endif
0102 
0103 #endif
0104 
0105 #if 0
0106 //
0107 // This section allows dependency scanners to find all the files we *might* include:
0108 //
0109 #  include "boost/config/stdlib/stlport.hpp"
0110 #  include "boost/config/stdlib/libcomo.hpp"
0111 #  include "boost/config/stdlib/roguewave.hpp"
0112 #  include "boost/config/stdlib/libcpp.hpp"
0113 #  include "boost/config/stdlib/libstdcpp3.hpp"
0114 #  include "boost/config/stdlib/sgi.hpp"
0115 #  include "boost/config/stdlib/msl.hpp"
0116 #  include "boost/config/stdlib/xlcpp_zos.hpp"
0117 #  include "boost/config/stdlib/vacpp.hpp"
0118 #  include "boost/config/stdlib/modena.hpp"
0119 #  include "boost/config/stdlib/dinkumware.hpp"
0120 #endif
0121