[cfe-commits] [libcxx] r128636 - /libcxx/trunk/include/atomic
Howard Hinnant
hhinnant at apple.com
Thu Mar 31 09:39:39 PDT 2011
Author: hhinnant
Date: Thu Mar 31 11:39:39 2011
New Revision: 128636
URL: http://llvm.org/viewvc/llvm-project?rev=128636&view=rev
Log:
Provide a more readable error message for <atomic> until it is implemented.
Modified:
libcxx/trunk/include/atomic
Modified: libcxx/trunk/include/atomic
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/atomic?rev=128636&r1=128635&r2=128636&view=diff
==============================================================================
--- libcxx/trunk/include/atomic (original)
+++ libcxx/trunk/include/atomic Thu Mar 31 11:39:39 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