Skip to content

Commit

Permalink
cxx11: Don't check for __cpp_lib_shared_timed_mutex which was not d…
Browse files Browse the repository at this point in the history
…efined by GCC 12
  • Loading branch information
lhmouse committed Oct 17, 2024
1 parent d8f64cb commit 05b03c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mcfgthread/cxx11.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ extern "C" void* __dso_handle;
namespace chrono = ::std::chrono;
using ::std::lock_guard;
using ::std::unique_lock;
#ifdef __cpp_lib_shared_timed_mutex // C++14
#if __cplusplus >= 201402L
using ::std::shared_lock;
#endif
#ifdef __cpp_lib_scoped_lock // C++17
Expand Down Expand Up @@ -367,7 +367,7 @@ class shared_mutex
using native_handle_type = ::_MCF_shared_mutex*;
using lock_guard_type = lock_guard<shared_mutex>; // extension
using unique_lock_type = unique_lock<shared_mutex>; // extension
#ifdef __cpp_lib_shared_timed_mutex // C++14
#if __cplusplus >= 201402L
using shared_lock_type = shared_lock<shared_mutex>; // extension
#endif

Expand Down

0 comments on commit 05b03c7

Please sign in to comment.