_ISOCxx_SOURCE
Alejandro Colomar
alx@kernel.org
Mon Jun 15 21:06:44 GMT 2026
Hi Joseph,
On 2026-06-15T17:20:17+0000, Joseph Myers wrote:
> On Sat, 13 Jun 2026, Alejandro Colomar via Gcc wrote:
>
> > I was reviewing the feature_test_macros(7) page, and found the
> > documentation of the _ISOC{99,11,23,...}_SOURCE macros to be incorrect.
> > And thinking about fixing that led me to think that the design of those
> > macros is less than ideal.
>
> Users should normally use -std= options with the compiler to get matching
> language and library features. These feature test macros are mainly for
> niche cases with old compilers. So I don't think any new user-facing
> design for them should be added (the C23 and later ones already use the
> newer __GLIBC_USE style of conditionals in the header implementation).
Makes sense. Should I document that users should avoid setting them
directly (and that they should use the corresponding compiler flag)?
Have a lovely night!
Alex
--
<https://www.alejandro-colomar.es>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20260615/8c924f19/attachment.sig>
More information about the Gcc
mailing list