Page MenuHomeFreeBSD

cdefs: Support _ISOC23_SOURCE and --std=c23
ClosedPublic

Authored by imp on Nov 14 2024, 6:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 28, 8:26 PM
Unknown Object (File)
Tue, Jan 28, 8:24 PM
Unknown Object (File)
Mon, Jan 27, 4:12 AM
Unknown Object (File)
Sat, Jan 18, 9:08 PM
Unknown Object (File)
Dec 26 2024, 8:23 PM
Unknown Object (File)
Dec 25 2024, 11:51 PM
Unknown Object (File)
Dec 25 2024, 7:28 PM
Unknown Object (File)
Dec 25 2024, 1:09 AM
Subscribers

Details

Summary

If wither _ISOC23_SOURCE or --std=c23 (or higher), then default to the
making the ISOC visibility to 2023 or higher. This mirrors what glibc
does, so update the comment to specify that the _ISOCxx_SOURCE values.
We implement C11 and C23 versions (there's no C17 version, so we don't
invent that). We don't implement the C95, C99 or C2y versions. The
former two don't seem to be relevant, and the latter is tricky so defer
for now.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable