config.hpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef BOOST_SYSTEM_DETAIL_CONFIG_HPP_INCLUDED
  2. #define BOOST_SYSTEM_DETAIL_CONFIG_HPP_INCLUDED
  3. // Copyright 2018 Peter Dimov
  4. //
  5. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  6. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. //
  8. // See http://www.boost.org/libs/system for documentation.
  9. #include <boost/config.hpp>
  10. #include <boost/config/workaround.hpp>
  11. // BOOST_SYSTEM_HAS_SYSTEM_ERROR
  12. #if !defined(BOOST_NO_CXX11_HDR_SYSTEM_ERROR)
  13. # define BOOST_SYSTEM_HAS_SYSTEM_ERROR
  14. #endif
  15. #if BOOST_WORKAROUND(BOOST_GCC, < 40600)
  16. // g++ 4.4's <map> is not good enough
  17. # undef BOOST_SYSTEM_HAS_SYSTEM_ERROR
  18. #endif
  19. #if defined(BOOST_NO_CXX11_HDR_MUTEX)
  20. // Required for thread-safe map manipulation
  21. # undef BOOST_SYSTEM_HAS_SYSTEM_ERROR
  22. #endif
  23. // BOOST_SYSTEM_NOEXCEPT
  24. // Retained for backward compatibility
  25. #define BOOST_SYSTEM_NOEXCEPT BOOST_NOEXCEPT
  26. // BOOST_SYSTEM_HAS_CONSTEXPR
  27. #if !defined(BOOST_NO_CXX14_CONSTEXPR)
  28. # define BOOST_SYSTEM_HAS_CONSTEXPR
  29. #endif
  30. #if BOOST_WORKAROUND(BOOST_GCC, < 60000)
  31. # undef BOOST_SYSTEM_HAS_CONSTEXPR
  32. #endif
  33. #if defined(BOOST_SYSTEM_HAS_CONSTEXPR)
  34. # define BOOST_SYSTEM_CONSTEXPR constexpr
  35. #else
  36. # define BOOST_SYSTEM_CONSTEXPR
  37. #endif
  38. #endif // BOOST_SYSTEM_DETAIL_CONFIG_HPP_INCLUDED