diff --git a/libc/include/stdatomic.h b/libc/include/stdatomic.h index adf60bbc3..99ab53603 100644 --- a/libc/include/stdatomic.h +++ b/libc/include/stdatomic.h @@ -39,6 +39,13 @@ #include +#undef _Atomic + /* Also defined by for gcc. But not used in macros. */ + /* Also a clang intrinsic. */ + /* Should not be used by client code before this file is */ + /* included. The definitions in themselves see */ + /* the old definition, as they should. */ + /* Client code sees the following definition. */ #define _Atomic(t) std::atomic using std::atomic_is_lock_free;