Page MenuHomeFreeBSD

cdefs: Support _ISOC23_SOURCE and --std=c23
ClosedPublic

Authored by imp on Thu, Nov 14, 6:59 PM.
Tags
None
Referenced Files
F102637888: D47576.diff
Fri, Nov 15, 4:20 AM
F102632948: D47576.diff
Fri, Nov 15, 2:32 AM
F102612790: D47576.diff
Thu, Nov 14, 7:31 PM
F102612508: D47576.diff
Thu, Nov 14, 7:24 PM
F102612013: D47576.diff
Thu, Nov 14, 7:13 PM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 60564
Build 57448: arc lint + arc unit