[PATCH] D26376: Undef stdatomic.h macro definitions that are defining functions provided in libc++ <atomic>

Marshall Clow via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 16 10:03:31 PST 2016


mclow.lists added a comment.

Ok - looking just at `kill_dependency`, this was added to the C standard in C11. It's required to be a macro.
`atomic_is_lock_free` appears to be a function, as does `atomic_load`. Haven't checked the rest.

I see that Bionic (sometimes) defines `atomic_is_lock_free` as a macro.


https://reviews.llvm.org/D26376





More information about the cfe-commits mailing list