Fix incompatibility between <stdatomic.h> and <atomic>
authorAndroid Tools Maintainers <android-tools-devel@lists.alioth.debian.org>
Wed, 11 Jan 2023 08:19:44 +0000 (08:19 +0000)
committerJochen Sprickerhof <jspricke@debian.org>
Wed, 11 Jan 2023 08:19:44 +0000 (08:19 +0000)
commit45ed7c3d6906fea67991a533f37fe3ce62c079b8
tree46260a5b91bcc1f5e7f50a22efdfbe7bc6b77a6a
parent6ed4bfa09781a9d8094031e4c6dd9867da2e0c7c
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