[cfe-commits] [libcxx] r128699 - /libcxx/tags/libcpp-16/include/atomic
Howard Hinnant
hhinnant at apple.com
Thu Mar 31 17:54:26 PDT 2011
Author: hhinnant
Date: Thu Mar 31 19:54:26 2011
New Revision: 128699
URL: http://llvm.org/viewvc/llvm-project?rev=128699&view=rev
Log:
made better error message for <atomic>
Modified:
libcxx/tags/libcpp-16/include/atomic
Modified: libcxx/tags/libcpp-16/include/atomic
URL: http://llvm.org/viewvc/llvm-project/libcxx/tags/libcpp-16/include/atomic?rev=128699&r1=128698&r2=128699&view=diff
==============================================================================
--- libcxx/tags/libcpp-16/include/atomic (original)
+++ libcxx/tags/libcpp-16/include/atomic Thu Mar 31 19:54:26 2011
@@ -530,6 +530,10 @@
_LIBCPP_BEGIN_NAMESPACE_STD
+#if !__has_feature(cxx_atomic)
+#error <atomic> is not implemented
+#else
+
typedef enum memory_order
{
memory_order_relaxed, memory_order_consume, memory_order_acquire,
@@ -1502,6 +1506,8 @@
#define ATOMIC_LONG_LOCK_FREE 0
#define ATOMIC_LLONG_LOCK_FREE 0
+#endif // !__has_feature(cxx_atomic)
+
_LIBCPP_END_NAMESPACE_STD
#endif // _LIBCPP_ATOMIC
More information about the cfe-commits
mailing list