Skip to content

Commit

Permalink
Unconditionally enable BOOST_SYSTEM_HAS_SYSTEM_ERROR
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Jan 17, 2024
1 parent 1f1e4e0 commit 945b059
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions include/boost/system/detail/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 945b059

Please sign in to comment.