Fix incompatibility between <stdatomic.h> and <atomic>
authorAndroid Tools Maintainers <android-tools-devel@lists.alioth.debian.org>
Fri, 27 Jan 2023 05:43:52 +0000 (05:43 +0000)
committerRoger Shimizu <rosh@debian.org>
Fri, 27 Jan 2023 05:43:52 +0000 (05:43 +0000)
commitae0b80fcdc554ce3f67af69bb7f71c75efd9597c
treebc9cdd2af037e1f142800e29db1cd8f7aed787ca
parentb7dc1d032d68006628a1d778904775d62c6d9c50
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