git: 10d5a548596c - main - libc: Add _PRINTF_NAN_LEN_MAX per C23
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 14 Aug 2026 19:32:57 UTC
The branch main has been updated by kfv:
URL: https://cgit.FreeBSD.org/src/commit/?id=10d5a548596ce7c111ea4a463d3f7d5f0cb1ae4f
commit 10d5a548596ce7c111ea4a463d3f7d5f0cb1ae4f
Author: Faraz Vahedi <kfv@FreeBSD.org>
AuthorDate: 2026-08-14 11:43:23 +0000
Commit: Faraz Vahedi <kfv@FreeBSD.org>
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/"