git: 10d5a548596c - main - libc: Add _PRINTF_NAN_LEN_MAX per C23

Faraz Vahedi <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src,gmane.os.freebsd.current.scm
Message-ID <[email protected]>
The branch main has been updated by kfv:

URL: https://cgit.FreeBSD.org/src/commit/?id=10d5a548596ce7c111ea4a463d3f7d5f0cb1ae4f

commit 10d5a548596ce7c111ea4a463d3f7d5f0cb1ae4f
Author:     Faraz Vahedi <[email protected]>
AuthorDate: 2026-08-14 11:43:23 +0000
Commit:     Faraz Vahedi <[email protected]>
CommitDate: 2026-08-14 19:31:53 +0000

    libc: Add _PRINTF_NAN_LEN_MAX per C23
    
    Reviewed by:    fuz
    Approved by:    fuz (mentor)
    MFC after:      1 month
    Differential Revision: https://reviews.freebsd.org/D58842
---
 include/stdio.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/stdio.h b/include/stdio.h
index 753c7f3df03f..ea016d65095d 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -220,6 +220,10 @@ __END_DECLS
 #endif
 #define	FILENAME_MAX	1024	/* must be <= PATH_MAX <sys/syslimits.h> */
 
+#if __ISO_C_VISIBLE >= 2023
+#define _PRINTF_NAN_LEN_MAX	3
+#endif
+
 /* System V/ANSI C; this is the wrong way to do this, do *not* use these. */
 #if __XSI_VISIBLE
 #define	P_tmpdir	"/tmp/"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.