aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFaraz Vahedi <kfv@FreeBSD.org>2026-08-14 11:43:23 +0000
committerFaraz Vahedi <kfv@FreeBSD.org>2026-08-14 19:31:53 +0000
commit10d5a548596ce7c111ea4a463d3f7d5f0cb1ae4f (patch)
tree8060faac9f56fa609818aa8ed1bee97ce837aa7c
parenta257e2dc9c6ecd3db41e1aa27a5297a0f328694a (diff)
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
-rw-r--r--include/stdio.h4
1 files changed, 4 insertions, 0 deletions
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/"