[Bug 255290] _POSIX_C_SOURCE=200809 hides static_assert
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu May 6 22:22:57 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255290
--- Comment #17 from commit-hook at FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=a709a4f0d4e0303eb40ea1b39b4bb35837800805
commit a709a4f0d4e0303eb40ea1b39b4bb35837800805
Author: Warner Losh <imp at FreeBSD.org>
AuthorDate: 2021-05-06 22:20:19 +0000
Commit: Warner Losh <imp at FreeBSD.org>
CommitDate: 2021-05-06 22:20:36 +0000
headers: Implement _ISOC11_SOURCES macro when __POSIX_C_SOURCE defined
When _ISOC11_SOURCES is defined for glibc at the same time
__POSIX_C_SOURCE is defined, it extends the __POSIX_C_SOURCE definition
by exaclty what C11 adds to the spec for each system header. We follow
both OpenBSD's and glibc's convention by also C11 or higher compliation
mode is selected.
The Open Group is working on issuing a new version of the POSIX standard
that will realign the standard from C99 to a newer version of C. This
commit is a stop-gap measure for greater compatibility until that
environment has been standardized.
Reviewed by: brooks@, arichards@, Olivier Certne
(comments tweaked before commit)
PR: 255290
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D29902
sys/sys/cdefs.h | 11 +++++++++++
1 file changed, 11 insertions(+)
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-standards
mailing list