Skip to content

Commit

Permalink
cdefs: Add FreeBSD _C23_SOURCE extension
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bsdimp committed Nov 15, 2024
1 parent 4afcb82 commit aec6c81
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sys/sys/cdefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aec6c81

Please sign in to comment.