Fix incompatibility between <stdatomic.h> and <atomic>
authorAndroid Tools Maintainers <android-tools-devel@lists.alioth.debian.org>
Tue, 2 Aug 2022 15:23:27 +0000 (16:23 +0100)
committerRoger Shimizu <rosh@debian.org>
Tue, 2 Aug 2022 15:23:27 +0000 (16:23 +0100)
commit8850d5ccc1cd59d561fa8cc548eb0543ae05aafc
treeba23b633c03f169ab1c32e298cd439dea475103c
parent7e5515eeacb614cd58cbacab5e5771d9642e728f
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