diff options
| author | Faraz Vahedi <kfv@FreeBSD.org> | 2026-08-14 12:22:00 +0000 |
|---|---|---|
| committer | Faraz Vahedi <kfv@FreeBSD.org> | 2026-08-14 19:31:54 +0000 |
| commit | cd0727ec709bb54f8f82104f6113284a15dd3464 (patch) | |
| tree | d0d6a2b06059261eb1f6461ed7380bc30f1af2c1 /include | |
| parent | 10d5a548596ce7c111ea4a463d3f7d5f0cb1ae4f (diff) | |
libc: Add <stdio.h> C23 feature test macro
Define the __STDC_VERSION_STDIO_H__ feature test macro now that
the header fully conforms to C23.
Reviewed by: fuz
Approved by: fuz (mentor)
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D58842
Diffstat (limited to 'include')
| -rw-r--r-- | include/rpc/xdr.h | 2 | ||||
| -rw-r--r-- | include/stdio.h | 6 | ||||
| -rw-r--r-- | include/xlocale.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/include/rpc/xdr.h b/include/rpc/xdr.h index 4c75bcc5bbf7..1b480ca0dd34 100644 --- a/include/rpc/xdr.h +++ b/include/rpc/xdr.h @@ -332,7 +332,7 @@ __BEGIN_DECLS extern void xdrmem_create(XDR *, char *, u_int, enum xdr_op); /* XDR using stdio library */ -#ifdef _STDIO_H_ +#ifdef __STDC_VERSION_STDIO_H__ extern void xdrstdio_create(XDR *, FILE *, enum xdr_op); #endif diff --git a/include/stdio.h b/include/stdio.h index ea016d65095d..50e3ff2d1c34 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -32,8 +32,8 @@ * SUCH DAMAGE. */ -#ifndef _STDIO_H_ -#define _STDIO_H_ +#ifndef __STDC_VERSION_STDIO_H__ +#define __STDC_VERSION_STDIO_H__ 202311L #include <sys/cdefs.h> #include <sys/_null.h> @@ -540,4 +540,4 @@ extern int __isthreaded; __END_DECLS __NULLABILITY_PRAGMA_POP -#endif /* !_STDIO_H_ */ +#endif /* !__STDC_VERSION_STDIO_H__ */ diff --git a/include/xlocale.h b/include/xlocale.h index cc2fc0839593..b1c83592a619 100644 --- a/include/xlocale.h +++ b/include/xlocale.h @@ -68,7 +68,7 @@ __BEGIN_DECLS #include <xlocale/_ctype.h> #endif -#ifdef _STDIO_H_ +#ifdef __STDC_VERSION_STDIO_H__ #include <xlocale/_stdio.h> #endif |
