|
@@ -5464,9 +5464,8 @@ inline _LIBCPP_INLINE_VISIBILITY
|
|
|
basic_ostream<_CharT, _Traits>&
|
|
|
operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Yp> const& __p);
|
|
|
|
|
|
-// TODO(EricWF): Enable this for both Clang and GCC. Currently it is only
|
|
|
-// enabled with clang.
|
|
|
-#if defined(_LIBCPP_HAS_C_ATOMIC_IMP) && !defined(_LIBCPP_HAS_NO_THREADS)
|
|
|
+
|
|
|
+#if !defined(_LIBCPP_HAS_NO_ATOMIC_HEADER)
|
|
|
|
|
|
class _LIBCPP_TYPE_VIS __sp_mut
|
|
|
{
|
|
@@ -5595,7 +5594,7 @@ atomic_compare_exchange_weak_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp>* __v
|
|
|
return atomic_compare_exchange_weak(__p, __v, __w);
|
|
|
}
|
|
|
|
|
|
-#endif // defined(_LIBCPP_HAS_C_ATOMIC_IMP) && !defined(_LIBCPP_HAS_NO_THREADS)
|
|
|
+#endif // !defined(_LIBCPP_HAS_NO_ATOMIC_HEADER)
|
|
|
|
|
|
//enum class
|
|
|
struct _LIBCPP_TYPE_VIS pointer_safety
|