Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-06-30 08:31:22

0001 #ifndef BOOST_SYSTEM_DETAIL_CONFIG_HPP_INCLUDED
0002 #define BOOST_SYSTEM_DETAIL_CONFIG_HPP_INCLUDED
0003 
0004 // Copyright 2018-2022 Peter Dimov
0005 //
0006 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0007 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0008 //
0009 // See http://www.boost.org/libs/system for documentation.
0010 
0011 #include <boost/config.hpp>
0012 #include <boost/config/workaround.hpp>
0013 
0014 // The macro BOOST_SYSTEM_DISABLE_THREADS can be defined on configurations
0015 // that provide <system_error> and <atomic>, but not <mutex>, such as the
0016 // single-threaded libstdc++.
0017 //
0018 // https://github.com/boostorg/system/issues/92
0019 
0020 // BOOST_SYSTEM_NOEXCEPT
0021 // Retained for backward compatibility
0022 
0023 #define BOOST_SYSTEM_NOEXCEPT noexcept
0024 
0025 // BOOST_SYSTEM_HAS_CONSTEXPR
0026 
0027 #if !defined(BOOST_NO_CXX14_CONSTEXPR)
0028 # define BOOST_SYSTEM_HAS_CONSTEXPR
0029 #endif
0030 
0031 #if BOOST_WORKAROUND(BOOST_GCC, < 60000)
0032 # undef BOOST_SYSTEM_HAS_CONSTEXPR
0033 #endif
0034 
0035 #if defined(BOOST_SYSTEM_HAS_CONSTEXPR)
0036 # define BOOST_SYSTEM_CONSTEXPR constexpr
0037 #else
0038 # define BOOST_SYSTEM_CONSTEXPR
0039 #endif
0040 
0041 // BOOST_SYSTEM_DEPRECATED
0042 
0043 #if defined(__clang__)
0044 # define BOOST_SYSTEM_DEPRECATED(msg) __attribute__((deprecated(msg)))
0045 #elif defined(__GNUC__)
0046 # if __GNUC__ * 100 + __GNUC_MINOR__ >= 405
0047 #  define BOOST_SYSTEM_DEPRECATED(msg) __attribute__((deprecated(msg)))
0048 # else
0049 #  define BOOST_SYSTEM_DEPRECATED(msg) __attribute__((deprecated))
0050 # endif
0051 #elif defined(_MSC_VER)
0052 #  define BOOST_SYSTEM_DEPRECATED(msg) __declspec(deprecated(msg))
0053 #elif defined(__sun)
0054 #  define BOOST_SYSTEM_DEPRECATED(msg) __attribute__((deprecated(msg)))
0055 #else
0056 # define BOOST_SYSTEM_DEPRECATED(msg)
0057 #endif
0058 
0059 // BOOST_SYSTEM_CLANG_6
0060 
0061 // Android NDK r18b has Clang 7.0.2 that still needs the workaround
0062 // https://github.com/boostorg/system/issues/100
0063 #if defined(__clang__) && (__clang_major__ < 7 || (defined(__APPLE__) && __clang_major__ < 11) || (defined(__ANDROID__) && __clang_major__ == 7))
0064 # define BOOST_SYSTEM_CLANG_6
0065 #endif
0066 
0067 //
0068 
0069 #if defined(BOOST_LIBSTDCXX_VERSION) && BOOST_LIBSTDCXX_VERSION < 50000
0070 # define BOOST_SYSTEM_AVOID_STD_GENERIC_CATEGORY
0071 #endif
0072 
0073 #if defined(__CYGWIN__) || defined(__MINGW32__) || (defined(_MSC_VER) && _MSC_VER == 1800) || (defined(BOOST_LIBSTDCXX_VERSION) && BOOST_LIBSTDCXX_VERSION < 90000)
0074 
0075 // Under Cygwin (and MinGW!), std::system_category() is POSIX
0076 // Under VS2013, std::system_category() isn't quite right
0077 // Under libstdc++ before 7.4, before 8.3, before 9.1, default_error_condition
0078 // for the system category returns a condition from the system category
0079 
0080 # define BOOST_SYSTEM_AVOID_STD_SYSTEM_CATEGORY
0081 #endif
0082 
0083 #endif // BOOST_SYSTEM_DETAIL_CONFIG_HPP_INCLUDED