Use of stdatomic.h is undefined in C++, even C++ 2000 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. 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
Details
Details
- Reviewers
emaste dim markj - Commits
- rGc1a24b9dbead: sys/stdatomic.h: be nicer to c++
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
LGTM. Have you seen a particular piece of C++ software that either accidentally or purposefully includes stdatomic.h?