| 1 | #ifndef BOOST_DESCRIBE_DETAIL_CONFIG_HPP_INCLUDED |
| 2 | #define BOOST_DESCRIBE_DETAIL_CONFIG_HPP_INCLUDED |
| 3 | |
| 4 | // Copyright 2021 Peter Dimov |
| 5 | // Distributed under the Boost Software License, Version 1.0. |
| 6 | // https://www.boost.org/LICENSE_1_0.txt |
| 7 | |
| 8 | #if __cplusplus >= 201402L |
| 9 | |
| 10 | # define BOOST_DESCRIBE_CXX14 |
| 11 | # define BOOST_DESCRIBE_CXX11 |
| 12 | |
| 13 | #elif defined(_MSC_VER) && _MSC_VER >= 1900 |
| 14 | |
| 15 | # define BOOST_DESCRIBE_CXX14 |
| 16 | # define BOOST_DESCRIBE_CXX11 |
| 17 | |
| 18 | #elif __cplusplus >= 201103L |
| 19 | |
| 20 | # define BOOST_DESCRIBE_CXX11 |
| 21 | |
| 22 | # if defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ == 7 |
| 23 | # undef BOOST_DESCRIBE_CXX11 |
| 24 | # endif |
| 25 | |
| 26 | #endif |
| 27 | |
| 28 | #if defined(BOOST_DESCRIBE_CXX11) |
| 29 | # define BOOST_DESCRIBE_CONSTEXPR_OR_CONST constexpr |
| 30 | #else |
| 31 | # define BOOST_DESCRIBE_CONSTEXPR_OR_CONST const |
| 32 | #endif |
| 33 | |
| 34 | #if defined(__clang__) |
| 35 | # define BOOST_DESCRIBE_MAYBE_UNUSED __attribute__((unused)) |
| 36 | #else |
| 37 | # define BOOST_DESCRIBE_MAYBE_UNUSED |
| 38 | #endif |
| 39 | |
| 40 | #endif // #ifndef BOOST_DESCRIBE_DETAIL_CONFIG_HPP_INCLUDED |
| 41 | |