diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-02-01 17:00:18 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-02-01 17:00:18 +0200 |
commit | bfae9dab4b2e3ddaf13e82a6c24c0684de9e0d48 (patch) | |
tree | 838b790e5d7ff0b1f742d0435c3fef87ccb6df79 /butl | |
parent | 9f4f8e8cadb49980422d0b64530c4e73c3945556 (diff) |
Fix shared_mutex feature test for MacOS some more
Diffstat (limited to 'butl')
-rw-r--r-- | butl/ft/shared_mutex | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/butl/ft/shared_mutex b/butl/ft/shared_mutex index 73bd3e9..18692c8 100644 --- a/butl/ft/shared_mutex +++ b/butl/ft/shared_mutex @@ -38,10 +38,21 @@ # endif #endif -// __cpp_lib_shared_mutex +// __cpp_lib_shared_timed_mutex // #ifndef __cpp_lib_shared_timed_mutex -# define __cpp_lib_shared_timed_mutex 201402 + // + // On MacOS shared_timed_mutex is marked as unavailable until MacOS + // 10.12. + // +# if defined(_LIBCPP_VERSION) +# if !defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) || \ + __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 101200 +# define __cpp_lib_shared_timed_mutex 201402 +# endif +# else +# define __cpp_lib_shared_timed_mutex 201402 +# endif #endif #endif // BUTL_FT_SHARED_MUTEX |