[PATCH] D45470: Emit an error when include <atomic> after <stdatomic.h>
Volodymyr Sapsai via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 15 15:42:22 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL332413: Emit an error when include <atomic> after <stdatomic.h> (authored by vsapsai, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D45470?vs=145817&id=146946#toc
Repository:
rL LLVM
https://reviews.llvm.org/D45470
Files:
libcxx/trunk/include/atomic
Index: libcxx/trunk/include/atomic
===================================================================
--- libcxx/trunk/include/atomic
+++ libcxx/trunk/include/atomic
@@ -555,6 +555,9 @@
#if !defined(_LIBCPP_HAS_C_ATOMIC_IMP) && !defined(_LIBCPP_HAS_GCC_ATOMIC_IMP)
#error <atomic> is not implemented
#endif
+#ifdef kill_dependency
+#error C++ standard library is incompatible with <stdatomic.h>
+#endif
#if _LIBCPP_STD_VER > 14
# define __cpp_lib_atomic_is_always_lock_free 201603L
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45470.146946.patch
Type: text/x-patch
Size: 490 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180515/c7db22cb/attachment.bin>
More information about the cfe-commits
mailing list