cdefs: Add FreeBSD _C23_SOURCE extension

Add _C23_SOURCE extension to mirror the _C11_SOURCE define. Unsure how
useful this is.

Sponsored by:		Netflix
Reviewed by:		brooks
Differential Revision:	https://reviews.freebsd.org/D47577
This commit is contained in:
Warner Losh 2024-11-14 16:52:43 -07:00
parent 4afcb82193
commit aec6c812be

View file

@ -616,6 +616,12 @@
#define __BSD_VISIBLE 0
#define __ISO_C_VISIBLE 2011
#define __EXT1_VISIBLE 0
#elif defined(_C23_SOURCE) /* Localism to specify strict C23 env. */
#define __POSIX_VISIBLE 0
#define __XSI_VISIBLE 0
#define __BSD_VISIBLE 0
#define __ISO_C_VISIBLE 2023
#define __EXT1_VISIBLE 0
#else /* Default environment: show everything. */
#define __POSIX_VISIBLE 200809
#define __XSI_VISIBLE 700