mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
20 lines
802 B
Diff
20 lines
802 B
Diff
diff --git a/projects/libcxx/include/atomic.orig b/projects/libcxx/include/atomic
|
|
index 0fc799a..a838635 100644
|
|
--- a/projects/libcxx/include/atomic.orig
|
|
+++ b/projects/libcxx/include/atomic
|
|
@@ -2791,10 +2791,15 @@ typedef conditional<_LIBCPP_CONTENTION_LOCK_FREE, __cxx_contention_t, char>::typ
|
|
typedef conditional<_LIBCPP_CONTENTION_LOCK_FREE, __cxx_contention_t, unsigned char>::type __libcpp_unsigned_lock_free;
|
|
#else
|
|
// No signed/unsigned lock-free types
|
|
+#define LOCK_FREE_NOT_AVAILABLE
|
|
#endif
|
|
|
|
+#ifndef LOCK_FREE_NOT_AVAILABLE
|
|
typedef atomic<__libcpp_signed_lock_free> atomic_signed_lock_free;
|
|
typedef atomic<__libcpp_unsigned_lock_free> atomic_unsigned_lock_free;
|
|
+#endif
|
|
+
|
|
+#undef LOCK_FREE_NOT_AVAILABLE
|
|
|
|
#define ATOMIC_FLAG_INIT {false}
|
|
#define ATOMIC_VAR_INIT(__v) {__v}
|