Fix incompatibility between <stdatomic.h> and <atomic>
authorAndroid Tools Maintainers <android-tools-devel@lists.alioth.debian.org>
Thu, 24 Feb 2022 16:58:51 +0000 (16:58 +0000)
committerRoger Shimizu <rosh@debian.org>
Thu, 24 Feb 2022 16:58:51 +0000 (16:58 +0000)
commit83148ecc8f04901faa824af5c8eb3fd00cb6c886
tree7637b90197631206e5126b5d050f12ed83dca5f7
parent3d5987f35f9a0e38c035315dd6ddaac4f2be8694
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