github.com/searKing/golang/go@v1.2.74/os/signal/cgo/include/boost/config/detail/select_stdlib_config.hpp (about)

     1  //  Boost compiler configuration selection header file
     2  
     3  //  (C) Copyright John Maddock 2001 - 2003. 
     4  //  (C) Copyright Jens Maurer 2001 - 2002. 
     5  //  Use, modification and distribution are subject to the 
     6  //  Boost Software License, Version 1.0. (See accompanying file 
     7  //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
     8  
     9  
    10  //  See http://www.boost.org for most recent version.
    11  
    12  // locate which std lib we are using and define BOOST_STDLIB_CONFIG as needed:
    13  
    14  // First include <cstddef> to determine if some version of STLport is in use as the std lib
    15  // (do not rely on this header being included since users can short-circuit this header 
    16  //  if they know whose std lib they are using.)
    17  #ifdef __cplusplus
    18  #  include <cstddef>
    19  #else
    20  #  include <stddef.h>
    21  #endif
    22  
    23  #if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)
    24  // STLPort library; this _must_ come first, otherwise since
    25  // STLport typically sits on top of some other library, we
    26  // can end up detecting that first rather than STLport:
    27  #  define BOOST_STDLIB_CONFIG "boost/config/stdlib/stlport.hpp"
    28  
    29  #else
    30  
    31  // If our std lib was not some version of STLport, and has not otherwise
    32  // been detected, then include <utility> as it is about 
    33  // the smallest of the std lib headers that includes real C++ stuff.
    34  // Some std libs do not include their C++-related macros in <cstddef> 
    35  // so this additional include makes sure we get those definitions.
    36  // Note: do not rely on this header being included since users can short-circuit this 
    37  // #include if they know whose std lib they are using.
    38  #if !defined(__LIBCOMO__) && !defined(__STD_RWCOMPILER_H__) && !defined(_RWSTD_VER)\
    39     && !defined(_LIBCPP_VERSION) && !defined(__GLIBCPP__) && !defined(__GLIBCXX__)\
    40     && !defined(__STL_CONFIG_H) && !defined(__MSL_CPP__) && !defined(__IBMCPP__)\
    41     && !defined(MSIPL_COMPILE_H) && !defined(_YVALS) && !defined(_CPPLIB_VER)
    42  #include <utility>
    43  #endif
    44  
    45  #if defined(__LIBCOMO__)
    46  // Comeau STL:
    47  #define BOOST_STDLIB_CONFIG "boost/config/stdlib/libcomo.hpp"
    48  
    49  #elif defined(__STD_RWCOMPILER_H__) || defined(_RWSTD_VER)
    50  // Rogue Wave library:
    51  #  define BOOST_STDLIB_CONFIG "boost/config/stdlib/roguewave.hpp"
    52  
    53  #elif defined(_LIBCPP_VERSION)
    54  // libc++
    55  #  define BOOST_STDLIB_CONFIG "boost/config/stdlib/libcpp.hpp"
    56  
    57  #elif defined(__GLIBCPP__) || defined(__GLIBCXX__)
    58  // GNU libstdc++ 3
    59  #  define BOOST_STDLIB_CONFIG "boost/config/stdlib/libstdcpp3.hpp"
    60  
    61  #elif defined(__STL_CONFIG_H)
    62  // generic SGI STL
    63  #  define BOOST_STDLIB_CONFIG "boost/config/stdlib/sgi.hpp"
    64  
    65  #elif defined(__MSL_CPP__)
    66  // MSL standard lib:
    67  #  define BOOST_STDLIB_CONFIG "boost/config/stdlib/msl.hpp"
    68  
    69  #elif defined(__IBMCPP__) && defined(__COMPILER_VER__) && defined(__MVS__)
    70  // IBM z/OS XL C/C++
    71  #  define BOOST_STDLIB_CONFIG "boost/config/stdlib/xlcpp_zos.hpp"
    72  
    73  #elif defined(__IBMCPP__)
    74  // take the default VACPP std lib
    75  #  define BOOST_STDLIB_CONFIG "boost/config/stdlib/vacpp.hpp"
    76  
    77  #elif defined(MSIPL_COMPILE_H)
    78  // Modena C++ standard library
    79  #  define BOOST_STDLIB_CONFIG "boost/config/stdlib/modena.hpp"
    80  
    81  #elif (defined(_YVALS) && !defined(__IBMCPP__)) || defined(_CPPLIB_VER)
    82  // Dinkumware Library (this has to appear after any possible replacement libraries):
    83  #  define BOOST_STDLIB_CONFIG "boost/config/stdlib/dinkumware.hpp"
    84  
    85  #elif defined (BOOST_ASSERT_CONFIG)
    86  // this must come last - generate an error if we don't
    87  // recognise the library:
    88  #  error "Unknown standard library - please configure and report the results to boost.org"
    89  
    90  #endif
    91  
    92  #endif
    93  
    94  #if 0
    95  //
    96  // This section allows dependency scanners to find all the files we *might* include:
    97  //
    98  #  include "boost/config/stdlib/stlport.hpp"
    99  #  include "boost/config/stdlib/libcomo.hpp"
   100  #  include "boost/config/stdlib/roguewave.hpp"
   101  #  include "boost/config/stdlib/libcpp.hpp"
   102  #  include "boost/config/stdlib/libstdcpp3.hpp"
   103  #  include "boost/config/stdlib/sgi.hpp"
   104  #  include "boost/config/stdlib/msl.hpp"
   105  #  include "boost/config/stdlib/xlcpp_zos.hpp"
   106  #  include "boost/config/stdlib/vacpp.hpp"
   107  #  include "boost/config/stdlib/modena.hpp"
   108  #  include "boost/config/stdlib/dinkumware.hpp"
   109  #endif
   110