Date: Mon, 28 Mar 2022 00:17:53 +0000 From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 262683] #include <stdatomic.h> fails: error: unknown type name '_Bool' Message-ID: <bug-262683-99-SmWq4ta9P3@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-262683-99@https.bugs.freebsd.org/bugzilla/> References: <bug-262683-99@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262683 --- Comment #3 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dc1a24b9dbeade11bfeedc91996672582f= 6ea32f2 commit c1a24b9dbeade11bfeedc91996672582f6ea32f2 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2022-03-27 21:16:15 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2022-03-28 00:16:02 +0000 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-u= sers 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 sys/sys/stdatomic.h | 10 ++++++++++ 1 file changed, 10 insertions(+) --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262683-99-SmWq4ta9P3>