diff options
author | Lenard Mollenkopf <glibc@lenardmollenkopf.de> | 2024-10-22 15:17:54 +0200 |
---|---|---|
committer | Joseph Myers <josmyers@redhat.com> | 2024-11-04 22:40:55 +0000 |
commit | e442e8376dcb14c904523c78994157cb5b502ff1 (patch) | |
tree | f14f7bbecd2c80b7614022a048d371ccc62ca38d /manual | |
parent | 2843e78b30da0aa743fdfb0ac61435c925182c04 (diff) | |
download | glibc-e442e8376dcb14c904523c78994157cb5b502ff1.zip glibc-e442e8376dcb14c904523c78994157cb5b502ff1.tar.gz glibc-e442e8376dcb14c904523c78994157cb5b502ff1.tar.bz2 |
Add feature test macro _ISOC2Y_SOURCE
This patch starts preparation for C2Y support in glibc headers by
adding a feature test macro _ISOC2Y_SOURCE and corresponding
__GLIBC_USE (ISOC2Y). (I mostly copied the work of Joseph Myers
for C2X). As with other such macros, C2Y features are also
enabled by compiling for a standard newer than C23, or by using
_GNU_SOURCE.
This patch does not itself enable anything new in the headers for C2Y;
that is to be done in followup patches. (For example an implementation
of WG14 N3349.)
Once C2Y becomes an actual standard we'll presumably move to using the
actual year in the feature test macro and __GLIBC_USE, with some
period when both macro spellings are accepted, as was done with
_ISOC2X_SOURCE.
Tested for x86_64.
Signed-off-by: Lenard Mollenkopf <glibc@lenardmollenkopf.de>
Diffstat (limited to 'manual')
-rw-r--r-- | manual/creature.texi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/manual/creature.texi b/manual/creature.texi index be0a5ac..09e1c96 100644 --- a/manual/creature.texi +++ b/manual/creature.texi @@ -233,6 +233,13 @@ Only some features from this draft standard are supported by @theglibc{}. The older name @code{_ISOC2X_SOURCE} is also supported. @end defvr +@defvr Macro _ISOC2Y_SOURCE +@standards{C2Y, (none)} +If this macro is defined, ISO C2Y extensions to ISO C23 are included. +Only some features from this draft standard are supported by +@theglibc{}. +@end defvr + @defvr Macro __STDC_WANT_LIB_EXT2__ @standards{ISO, (none)} If you define this macro to the value @code{1}, features from ISO/IEC |