diff options
author | Joseph Myers <joseph@codesourcery.com> | 2021-09-30 20:53:34 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2021-09-30 20:53:34 +0000 |
commit | 01d34e934a395675ba3c576f2a51f10b86efbc20 (patch) | |
tree | 0c45b06458f2458671ade0c404d41527c63bfefd /NEWS | |
parent | 52c057e37c3e0d1451f1c1cc0465eddee6cf236d (diff) | |
download | glibc-01d34e934a395675ba3c576f2a51f10b86efbc20.zip glibc-01d34e934a395675ba3c576f2a51f10b86efbc20.tar.gz glibc-01d34e934a395675ba3c576f2a51f10b86efbc20.tar.bz2 |
Add C2X _PRINTF_NAN_LEN_MAX
C2X adds a macro _PRINTF_NAN_LEN_MAX to <stdio.h>, giving the maximum
length of printf output for a NaN. glibc never includes an
n-char-sequence in its printf output for NaNs, so the correct value
for glibc is 4 ("-nan" or "-NAN"); define the macro accordingly.
This patch makes the macro definition conditional on __GLIBC_USE
(ISOC2X), as is generally done with features from new standard
versions. The name is in the implementation namespace for older
standards, so it would also be possible to define it unconditionally.
Tested for x86_64.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -45,6 +45,8 @@ Major new features: * The exp10 functions in <math.h> now have a corresponding type-generic macro in <tgmath.h>. +* The ISO C2X macro _PRINTF_NAN_LEN_MAX has been added to <stdio.h>. + Deprecated and removed features, and other changes affecting compatibility: * The r_version update in the debugger interface makes the glibc binary |