Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Paste
P680
Command-Line Input
Active
Public
Actions
Authored by
jhb
on Fri, Dec 5, 2:30 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Flag For Later
Award Token
Tags
None
Referenced Files
F138878288: Command-Line Input
Fri, Dec 5, 2:30 PM
2025-12-05 14:30:40 (UTC+0)
Subscribers
None
diff --git a/sys/sys/_visible.h b/sys/sys/_visible.h
index de7542db27b5..747b3b0b6114 100644
--- a/sys/sys/_visible.h
+++ b/sys/sys/_visible.h
@@ -205,7 +205,14 @@
#define __POSIX_VISIBLE 202405
#define __XSI_VISIBLE 800
#define __BSD_VISIBLE 1
-#define __ISO_C_VISIBLE 2023
+#if _ISOC23_SOURCE || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L)
+#define __ISO_C_VISIBLE 2023
+#elif _ISOC11_SOURCE || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L)
+#define __ISO_C_VISIBLE 2011
+#else
+/* XXX: Should we permit older? */
+#define __ISO_C_VISIBLE 1999
+#endif
#define __EXT1_VISIBLE 1
#endif
#endif /* _POSIX_C_SOURCE */
Event Timeline
jhb
created this paste.
Fri, Dec 5, 2:30 PM
2025-12-05 14:30:40 (UTC+0)
Log In to Comment