tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Do all -current compilers support C23 typed enum syntax?
On Dec 3, 2026, at 2:24 PM, Taylor R Campbell <riastradh%netbsd.org@localhost> wrote:
>
>
>>
>> Date: Thu, 3 Dec 2026 14:02:21 -0800
>> From: Chris Hanson <cmhanson%eschatologist.net@localhost>
>>
>>>> On Dec 3, 2026, at 4:20 AM, Greg Troxel <gdt%lexort.com@localhost> wrote:
>>>
>>> Would this mean that programs that either
>>> use your API
>>> include a header where this is defined
>>>
>>> could only be compiled with a compiler in --std=c23 mode?
>>
>> This is a good point. Apparently -current (both the userspace and
>> kernel) are compiled in --std=c23 mode, but I didn't check whether
>> that was explicitly passed or whether it was the compiler's default.
>
> How did you conclude that?
Like I said, I didn’t check. I just tried it and it worked. Maybe the GNU extensions added typed enums well before C23.
— Chris
Home |
Main Index |
Thread Index |
Old Index