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)
Mon, Dec 23, 5:23 PM
Unknown Object (File)
Tue, Nov 26, 5:52 AM
Unknown Object (File)
Nov 17 2024, 3:10 PM
Unknown Object (File)
Nov 15 2024, 9:59 PM
Unknown Object (File)
Nov 15 2024, 9:56 PM
Unknown Object (File)
Nov 15 2024, 9:35 PM
Unknown Object (File)
Nov 15 2024, 9:10 PM
Unknown Object (File)
Nov 15 2024, 10:02 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