]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/beast/core/detail/config.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / beast / core / detail / config.hpp
1 //
2 // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 //
4 // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 //
7 // Official repository: https://github.com/boostorg/beast
8 //
9
10 #ifndef BOOST_BEAST_CORE_DETAIL_CONFIG_HPP
11 #define BOOST_BEAST_CORE_DETAIL_CONFIG_HPP
12
13 #include <boost/config.hpp>
14 #include <boost/version.hpp>
15
16 // Available to every header
17 #include <boost/config.hpp>
18 #include <boost/core/ignore_unused.hpp>
19 #include <boost/static_assert.hpp>
20
21 /*
22 _MSC_VER and _MSC_FULL_VER by version:
23
24 14.0 (2015) 1900 190023026
25 14.0 (2015 Update 1) 1900 190023506
26 14.0 (2015 Update 2) 1900 190023918
27 14.0 (2015 Update 3) 1900 190024210
28 */
29
30 #if defined(BOOST_MSVC)
31 # if BOOST_MSVC_FULL_VER < 190024210
32 # error Beast requires C++11: Visual Studio 2015 Update 3 or later needed
33 # endif
34
35 #elif defined(BOOST_GCC)
36 # if(BOOST_GCC < 40801)
37 # error Beast requires C++11: gcc version 4.8 or later needed
38 # endif
39
40 #else
41 # if \
42 defined(BOOST_NO_CXX11_DECLTYPE) || \
43 defined(BOOST_NO_CXX11_HDR_TUPLE) || \
44 defined(BOOST_NO_CXX11_TEMPLATE_ALIASES) || \
45 defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
46 # error Beast requires C++11: a conforming compiler is needed
47 # endif
48
49 #endif
50
51 #if BOOST_VERSION >= 106500 || ! defined(BOOST_GCC) || BOOST_GCC < 70000
52 # define BOOST_BEAST_FALLTHROUGH BOOST_FALLTHROUGH
53 #else
54 # define BOOST_BEAST_FALLTHROUGH __attribute__((fallthrough))
55 #endif
56
57 #endif