Unconditionally enable BOOST_SYSTEM_HAS_SYSTEM_ERROR

This commit is contained in:
Peter Dimov
2024-01-17 04:14:23 +02:00
parent 1f1e4e0400
commit 945b0591dd

View File

@ -12,17 +12,15 @@
#include <boost/config.hpp>
#include <boost/config/workaround.hpp>
// BOOST_SYSTEM_HAS_SYSTEM_ERROR
//
// The macro BOOST_SYSTEM_DISABLE_THREADS can be defined on configurations
// that provide <system_error> and <atomic>, but not <mutex>, such as the
// single-threaded libstdc++.
//
// https://github.com/boostorg/system/issues/92
#if !defined(BOOST_NO_CXX11_HDR_SYSTEM_ERROR) && !defined(BOOST_NO_CXX11_HDR_ATOMIC) && ( !defined(BOOST_NO_CXX11_HDR_MUTEX) || defined(BOOST_SYSTEM_DISABLE_THREADS) )
# define BOOST_SYSTEM_HAS_SYSTEM_ERROR
#endif
// BOOST_SYSTEM_HAS_SYSTEM_ERROR
#define BOOST_SYSTEM_HAS_SYSTEM_ERROR
// BOOST_SYSTEM_NOEXCEPT
// Retained for backward compatibility