1 #ifndef BOOST_SYSTEM_DETAIL_CONFIG_HPP_INCLUDED 2 #define BOOST_SYSTEM_DETAIL_CONFIG_HPP_INCLUDED 3 4 // Copyright 2018 Peter Dimov 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 16 #if !defined(BOOST_NO_CXX11_HDR_SYSTEM_ERROR) 17 # define BOOST_SYSTEM_HAS_SYSTEM_ERROR 18 #endif 19 20 #if BOOST_WORKAROUND(BOOST_GCC, < 40600) 21 // g++ 4.4's <map> is not good enough 22 # undef BOOST_SYSTEM_HAS_SYSTEM_ERROR 23 #endif 24 25 #if defined(BOOST_NO_CXX11_HDR_MUTEX) 26 // Required for thread-safe map manipulation 27 # undef BOOST_SYSTEM_HAS_SYSTEM_ERROR 28 #endif 29 30 // BOOST_SYSTEM_NOEXCEPT 31 // Retained for backward compatibility 32 33 #define BOOST_SYSTEM_NOEXCEPT BOOST_NOEXCEPT 34 35 // BOOST_SYSTEM_HAS_CONSTEXPR 36 37 #if !defined(BOOST_NO_CXX14_CONSTEXPR) 38 # define BOOST_SYSTEM_HAS_CONSTEXPR 39 #endif 40 41 #if BOOST_WORKAROUND(BOOST_GCC, < 60000) 42 # undef BOOST_SYSTEM_HAS_CONSTEXPR 43 #endif 44 45 #if defined(BOOST_SYSTEM_HAS_CONSTEXPR) 46 # define BOOST_SYSTEM_CONSTEXPR constexpr 47 #else 48 # define BOOST_SYSTEM_CONSTEXPR 49 #endif 50 51 #endif // BOOST_SYSTEM_DETAIL_CONFIG_HPP_INCLUDED 52