Re: git: 28cecfe27964 - main - libc: Restrict ATOMIC_VAR_INIT for C23 conformance
Date: Mon, 22 Jun 2026 08:41:36 UTC
Faraz Vahedi <kfv@kfv.io> writes: > D57724 looks reasonable, but I would probably just change the gate > from __ISO_C_VISIBLE to __STDC_VERSION__. I think that is what > I should have done in the first place. That would make more sense for > obsolete language constructs, I believe. No, __STDC_VERSION__ is defined by the compiler and is used to determine which language version the compiler provides, while __ISO_C_VISIBLE is defined by us and is used to decide which interfaces to expose to the application based on what the application requested. If you scan through src/include, you'll note that __STDC_VERSION__ is only used there when what matters is whether a certain keyword is provided by the compiler, which is not the case here. DES -- Dag-Erling Smørgrav - des@FreeBSD.org