]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
headers: Implement _ISOC11_SOURCES macro when __POSIX_C_SOURCE defined
authorWarner Losh <imp@FreeBSD.org>
Thu, 6 May 2021 22:20:19 +0000 (16:20 -0600)
committerWarner Losh <imp@FreeBSD.org>
Thu, 6 May 2021 22:20:36 +0000 (16:20 -0600)
commita709a4f0d4e0303eb40ea1b39b4bb35837800805
treef190337ec28bce1e0e466a5536c58ef10cb52baa
parent6d6cca363392943689204f920fa2da9226e42056
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