Fix incompatibility between <stdatomic.h> and <atomic>
authorAndroid Tools Maintainers <android-tools-devel@lists.alioth.debian.org>
Mon, 27 Jun 2022 17:30:12 +0000 (18:30 +0100)
committerRoger Shimizu <rosh@debian.org>
Mon, 27 Jun 2022 17:30:12 +0000 (18:30 +0100)
commit1305201214a694a138b8faf02feb8b8b4efdfc78
tree16480139c9b79f1d02b3d1d9186692f47442a5f8
parent6743619846a867bbc72aa650be8ce0d2988efc9a
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