summaryrefslogtreecommitdiffstats
path: root/libcxx/include/atomic
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2011-03-31 16:39:39 +0000
committerHoward Hinnant <hhinnant@apple.com>2011-03-31 16:39:39 +0000
commit890477f33364d41f8e952ff60a5cffc14863b37f (patch)
tree5358e0a5b774df6009e1b2e5f3ae230ef8acaebe /libcxx/include/atomic
parentc2452a6f1dc026aa0fda47515bda700546df1189 (diff)
downloadbcm5719-llvm-890477f33364d41f8e952ff60a5cffc14863b37f.tar.gz
bcm5719-llvm-890477f33364d41f8e952ff60a5cffc14863b37f.zip
Provide a more readable error message for <atomic> until it is implemented.
llvm-svn: 128636
Diffstat (limited to 'libcxx/include/atomic')
-rw-r--r--libcxx/include/atomic6
1 files changed, 6 insertions, 0 deletions
diff --git a/libcxx/include/atomic b/libcxx/include/atomic
index daf64b26590..31385a23d17 100644
--- a/libcxx/include/atomic
+++ b/libcxx/include/atomic
@@ -530,6 +530,10 @@ void atomic_signal_fence(memory_order m);
_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 @@ typedef atomic<uintmax_t> atomic_uintmax_t;
#define ATOMIC_LONG_LOCK_FREE 0
#define ATOMIC_LLONG_LOCK_FREE 0
+#endif // !__has_feature(cxx_atomic)
+
_LIBCPP_END_NAMESPACE_STD
#endif // _LIBCPP_ATOMIC
OpenPOWER on IntegriCloud