git: 8f766130607e - stable/15 - libc: Add _PRINTF_NAN_LEN_MAX per C23
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 20 Oct 2026 08:12:07 UTC
The branch stable/15 has been updated by kfv:
URL: https://cgit.FreeBSD.org/src/commit/?id=8f766130607ea84c129862deeec414dc1ebe2451
commit 8f766130607ea84c129862deeec414dc1ebe2451
Author: Faraz Vahedi <kfv@FreeBSD.org>
AuthorDate: 2026-08-14 11:43:23 +0000
Commit: Faraz Vahedi <kfv@FreeBSD.org>
CommitDate: 2026-10-20 08:09:33 +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
(cherry picked from commit 10d5a548596ce7c111ea4a463d3f7d5f0cb1ae4f)
---
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/"