[Bug 255290] _POSIX_C_SOURCE=200809 hides static_assert
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 06 Dec 2021 15:57:29 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255290 --- Comment #22 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3f82687cdf02983d8f3294df4d97b09cf211141b commit 3f82687cdf02983d8f3294df4d97b09cf211141b Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2021-05-06 22:20:19 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2021-12-06 15:56:00 +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 (cherry picked from commit a709a4f0d4e0303eb40ea1b39b4bb35837800805) sys/sys/cdefs.h | 11 +++++++++++ 1 file changed, 11 insertions(+) -- You are receiving this mail because: You are the assignee for the bug.