Date: Mon, 22 Jun 2026 10:41:36 +0200 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org> To: Faraz Vahedi <kfv@kfv.io> Cc: Warner Losh <imp@bsdimp.com>, Mark Millard <marklmi@yahoo.com>, Warner Losh <imp@freebsd.org>, src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org, Nuno Teixeira <eduardo@freebsd.org> Subject: Re: git: 28cecfe27964 - main - libc: Restrict ATOMIC_VAR_INIT for C23 conformance Message-ID: <86bjd3rmpr.fsf@ltc.des.dev> In-Reply-To: <94E5F613-3930-464B-AC10-4943230C2025@kfv.io> (Faraz Vahedi's message of "Mon, 22 Jun 2026 01:53:32 %2B0330") References: <6a35ddd3.22963.721d614@gitrepo.freebsd.org> <4e902fcf-e79c-47b5-a51f-4881c09f7528@yahoo.com> <CANCZdfpo0mECxiLM9mFV7=6yNZgspcbvzFYyE2hsHeQ1X8p_eA@mail.gmail.com> <94E5F613-3930-464B-AC10-4943230C2025@kfv.io>
index | next in thread | previous in thread | raw e-mail
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.orghome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86bjd3rmpr.fsf>
