diff options
Diffstat (limited to 'libcxx/src/mutex_destructor.cpp')
-rw-r--r-- | libcxx/src/mutex_destructor.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libcxx/src/mutex_destructor.cpp b/libcxx/src/mutex_destructor.cpp index d366a4e..6096e42 100644 --- a/libcxx/src/mutex_destructor.cpp +++ b/libcxx/src/mutex_destructor.cpp @@ -19,10 +19,8 @@ #include <__config> #include <__threading_support> -#if !defined(_LIBCPP_HAS_NO_THREADS) -# if _LIBCPP_ABI_VERSION == 1 || !defined(_LIBCPP_HAS_TRIVIAL_MUTEX_DESTRUCTION) -# define NEEDS_MUTEX_DESTRUCTOR -# endif +#if _LIBCPP_ABI_VERSION == 1 || !defined(_LIBCPP_HAS_TRIVIAL_MUTEX_DESTRUCTION) +# define NEEDS_MUTEX_DESTRUCTOR #endif _LIBCPP_BEGIN_NAMESPACE_STD @@ -45,6 +43,6 @@ mutex::~mutex() noexcept { __libcpp_mutex_destroy(&__m_); } +#endif // !NEEDS_MUTEX_DESTRUCTOR -#endif // !_LIBCPP_HAS_NO_THREADS _LIBCPP_END_NAMESPACE_STD |