Fix incompatibility between <stdatomic.h> and <atomic>
authorAndroid Tools Maintainers <android-tools-devel@lists.alioth.debian.org>
Sat, 28 May 2022 11:13:51 +0000 (12:13 +0100)
committerRoger Shimizu <rosh@debian.org>
Sat, 28 May 2022 11:13:51 +0000 (12:13 +0100)
commit0f1d6949a6a1cd0ba51cedcd1b8f19641060b9ed
tree59e14ef36e670fe6e871538fbb19d4e0cf992b01
parent999298418c89e976b46daac9977258737070e4f6
Fix incompatibility between <stdatomic.h> and <atomic>

Bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60932
Bug: https://reviews.llvm.org/D45470

This 2 headers combined will cause errors for both GCC and Clang. This patch
makes sure only one of them is present at any time.

Gbp-Pq: Topic system/core
Gbp-Pq: Name stdatomic.patch
system/core/libcutils/include/cutils/atomic.h
system/core/libcutils/include/cutils/trace.h
system/core/liblog/logger.h