]> Savannah Git Hosting - gnulib.git/commitdiff
stdio: Fix the value of _PRINTF_NAN_LEN_MAX on OpenBSD.
authorBruno Haible <bruno@clisp.org>
Fri, 7 Apr 2023 22:19:35 +0000 (00:19 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 7 Apr 2023 22:19:35 +0000 (00:19 +0200)
* lib/stdio.in.h (_PRINTF_NAN_LEN_MAX): Define to 4 on OpenBSD.

ChangeLog
lib/stdio.in.h

index f6550f336ccc2cc722af0d726387fef6aa1c6152..98beb6d5f91bc193dc1a9ffa4aba0c7d62fd59bd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-04-07  Bruno Haible  <bruno@clisp.org>
+
+       stdio: Fix the value of _PRINTF_NAN_LEN_MAX on OpenBSD.
+       * lib/stdio.in.h (_PRINTF_NAN_LEN_MAX): Define to 4 on OpenBSD.
+
 2023-04-07  Bruno Haible  <bruno@clisp.org>
 
        vasnwprintf-posix: Work around %La bug in glibc 2.15 and Haiku.
index 69242b6c3658466fe7834322bd3ea19f7c767d9b..f3180149783f058b10e740f5c65e57d5cd608eaf 100644 (file)
 #ifndef _PRINTF_NAN_LEN_MAX
 # if defined __FreeBSD__ || defined __DragonFly__ \
      || defined __NetBSD__ \
-     || defined __OpenBSD__ \
      || (defined __APPLE__ && defined __MACH__)
 /* On BSD systems, a NaN value prints as just "nan", without a sign.  */
 #  define _PRINTF_NAN_LEN_MAX 3
-# elif (__GLIBC__ >= 2) || MUSL_LIBC || defined __sun || defined __CYGWIN__
-/* glibc, musl libc, Solaris libc, and Cygwin produce "[-]nan".  */
+# elif (__GLIBC__ >= 2) || MUSL_LIBC || defined __OpenBSD__ || defined __sun || defined __CYGWIN__
+/* glibc, musl libc, OpenBSD, Solaris libc, and Cygwin produce "[-]nan".  */
 #  define _PRINTF_NAN_LEN_MAX 4
 # elif defined _AIX
 /* AIX produces "[-]NaNQ".  */