]> sourceware.org Git - newlib-cygwin.git/commit
sys/stdatomic.h: be nicer to c++
authorKonstantin Belousov <kib@FreeBSD.org>
Sun, 27 Mar 2022 21:16:15 +0000 (00:16 +0300)
committerSebastian Huber <sebastian.huber@embedded-brains.de>
Tue, 9 Jul 2024 06:20:50 +0000 (08:20 +0200)
commit9f86886873df95e05d9246256f6db9c62f8d8dae
tree8fab5749f406ddad1ea17e8fab51a2be9f0c69b6
parent27ddfd9f8edb4a96fc456611da6a49a290282fb6
sys/stdatomic.h: be nicer to c++

Use of stdatomic.h is undefined in C++, even the C++ 2020 standard does not
list stdatomic.h as a C library header supported by the language.  More,
there are some subtle differences between the <atomic> C++ header, and
C11+ stdatomic.h provided features.

Nonetheless, it is a quality of the implementation aspect, so let mis-users
mis-use stdatomic.h as they want, by making a compat shim for _Bool.

PR: 262683
Reported by: yuri
Reviewed by: dim, emaste
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D34686
newlib/libc/include/stdatomic.h
This page took 0.031329 seconds and 5 git commands to generate.