Fix incompatibility between <stdatomic.h> and <atomic>
authorAndroid Tools Maintainers <android-tools-devel@lists.alioth.debian.org>
Thu, 28 Jul 2022 16:01:55 +0000 (17:01 +0100)
committerRoger Shimizu <rosh@debian.org>
Thu, 28 Jul 2022 16:01:55 +0000 (17:01 +0100)
commit7ee2dea67cd0765d0baed46cd22921a069815606
treeb3180a6997d4981cc12b5a81a7264f2a8f2d6f41
parenta46edf1301852bcd54ed0c7b19ff2cf22098a67f
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