]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/system/detail/config.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / system / detail / config.hpp
CommitLineData
92f5a8d4
TL
1#ifndef BOOST_SYSTEM_DETAIL_CONFIG_HPP_INCLUDED
2#define BOOST_SYSTEM_DETAIL_CONFIG_HPP_INCLUDED
3
1e59de90 4// Copyright 2018-2022 Peter Dimov
92f5a8d4
TL
5//
6// Distributed under the Boost Software License, Version 1.0. (See accompanying
7// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8//
9// See http://www.boost.org/libs/system for documentation.
10
11#include <boost/config.hpp>
12#include <boost/config/workaround.hpp>
13
14// BOOST_SYSTEM_HAS_SYSTEM_ERROR
15
1e59de90 16#if !defined(BOOST_NO_CXX11_HDR_SYSTEM_ERROR) && !defined(BOOST_NO_CXX11_HDR_ATOMIC)
92f5a8d4
TL
17# define BOOST_SYSTEM_HAS_SYSTEM_ERROR
18#endif
19
92f5a8d4
TL
20// BOOST_SYSTEM_NOEXCEPT
21// Retained for backward compatibility
22
23#define BOOST_SYSTEM_NOEXCEPT BOOST_NOEXCEPT
24
25// BOOST_SYSTEM_HAS_CONSTEXPR
26
27#if !defined(BOOST_NO_CXX14_CONSTEXPR)
28# define BOOST_SYSTEM_HAS_CONSTEXPR
29#endif
30
31#if BOOST_WORKAROUND(BOOST_GCC, < 60000)
32# undef BOOST_SYSTEM_HAS_CONSTEXPR
33#endif
34
35#if defined(BOOST_SYSTEM_HAS_CONSTEXPR)
36# define BOOST_SYSTEM_CONSTEXPR constexpr
37#else
38# define BOOST_SYSTEM_CONSTEXPR
39#endif
40
20effc67
TL
41// BOOST_SYSTEM_DEPRECATED
42
43#if defined(__clang__)
44# define BOOST_SYSTEM_DEPRECATED(msg) __attribute__((deprecated(msg)))
45#elif defined(__GNUC__)
46# if __GNUC__ * 100 + __GNUC_MINOR__ >= 405
47# define BOOST_SYSTEM_DEPRECATED(msg) __attribute__((deprecated(msg)))
48# else
49# define BOOST_SYSTEM_DEPRECATED(msg) __attribute__((deprecated))
50# endif
51#elif defined(_MSC_VER)
52# define BOOST_SYSTEM_DEPRECATED(msg) __declspec(deprecated(msg))
1e59de90
TL
53#elif defined(__sun)
54# define BOOST_SYSTEM_DEPRECATED(msg) __attribute__((deprecated(msg)))
55#else
56# define BOOST_SYSTEM_DEPRECATED(msg)
57#endif
58
59// BOOST_SYSTEM_CLANG_6
60
61#if defined(__clang__) && (__clang_major__ < 7 || (defined(__APPLE__) && __clang_major__ < 11))
62# define BOOST_SYSTEM_CLANG_6
63#endif
64
65//
66
67#if defined(BOOST_LIBSTDCXX_VERSION) && BOOST_LIBSTDCXX_VERSION < 50000
68# define BOOST_SYSTEM_AVOID_STD_GENERIC_CATEGORY
69#endif
70
71#if defined(__CYGWIN__) || defined(__MINGW32__) || (defined(_MSC_VER) && _MSC_VER == 1800) || (defined(BOOST_LIBSTDCXX_VERSION) && BOOST_LIBSTDCXX_VERSION < 90000)
72
73// Under Cygwin (and MinGW!), std::system_category() is POSIX
74// Under VS2013, std::system_category() isn't quite right
75// Under libstdc++ before 7.4, before 8.3, before 9.1, default_error_condition
76// for the system category returns a condition from the system category
77
78# define BOOST_SYSTEM_AVOID_STD_SYSTEM_CATEGORY
20effc67
TL
79#endif
80
92f5a8d4 81#endif // BOOST_SYSTEM_DETAIL_CONFIG_HPP_INCLUDED