diff options
author | Bruno Haible <bruno@clisp.org> | 2023-03-25 19:36:31 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2023-03-25 19:49:21 +0100 |
commit | eb8da36e0b3a667444707fb7d0182e54bb2130d0 (patch) | |
tree | 2456cce91815d62e13640cffa4e786fecdfb87d4 /m4 | |
parent | fdae921011d0233db99799edbf4a858596265392 (diff) | |
download | gnulib-eb8da36e0b3a667444707fb7d0182e54bb2130d0.tar.gz |
stdio: ISO C 23: Define _PRINTF_NAN_LEN_MAX.
* lib/stdio.in.h (_PRINTF_NAN_LEN_MAX): New macro.
* m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MUSL_LIBC.
* modules/stdio (Files): Add m4/musl.m4.
* tests/test-stdio.c: Check that _PRINTF_NAN_LEN_MAX is defined.
Include nan.h, macros.h.
(main): Check the value of _PRINTF_NAN_LEN_MAX.
* modules/stdio-tests (Files): Add tests/nan.h, tests/macros.h,
m4/exponentd.m4.
(configure.ac): Invoke gl_DOUBLE_EXPONENT_LOCATION.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/stdio_h.m4 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/m4/stdio_h.m4 b/m4/stdio_h.m4 index 07569961f8..342b7d1f20 100644 --- a/m4/stdio_h.m4 +++ b/m4/stdio_h.m4 @@ -1,4 +1,4 @@ -# stdio_h.m4 serial 61 +# stdio_h.m4 serial 62 dnl Copyright (C) 2007-2023 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -40,6 +40,9 @@ AC_DEFUN_ONCE([gl_STDIO_H], attribute "__gnu_printf__" instead of "__printf__"]) fi + dnl For defining _PRINTF_NAN_LEN_MAX. + gl_MUSL_LIBC + dnl This ifdef is an optimization, to avoid performing a configure check whose dnl result is not used. But it does not make the test of dnl GNULIB_STDIO_H_NONBLOCKING or GNULIB_NONBLOCKING redundant. |