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 /lib | |
| 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 'lib')
| -rw-r--r-- | lib/libc/xdr/xdr.3 | 2 | ||||
| -rw-r--r-- | lib/libgeom/libgeom.h | 2 | ||||
| -rw-r--r-- | lib/libutil/libutil.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/xdr/xdr.3 b/lib/libc/xdr/xdr.3 index 65adb050fa44..5d81a867ad66 100644 --- a/lib/libc/xdr/xdr.3 +++ b/lib/libc/xdr/xdr.3 @@ -572,7 +572,7 @@ This routine returns the amount of memory required to encode using filter .Fa func . .Pp -.It Li "#ifdef _STDIO_H_" +.It Li "#ifdef __STDC_VERSION_STDIO_H__" .It Li "/* XDR using stdio library */" .It Xo .Ft void diff --git a/lib/libgeom/libgeom.h b/lib/libgeom/libgeom.h index 2116645bd496..713c49f0380c 100644 --- a/lib/libgeom/libgeom.h +++ b/lib/libgeom/libgeom.h @@ -143,7 +143,7 @@ void geom_deletetree(struct gmesh *); struct gctl_req; -#ifdef _STDIO_H_ /* limit #include pollution */ +#ifdef __STDC_VERSION_STDIO_H__ /* limit #include pollution */ void gctl_dump(struct gctl_req *, FILE *); #endif void gctl_free(struct gctl_req *); diff --git a/lib/libutil/libutil.h b/lib/libutil/libutil.h index 17e4f1fba247..679a213e64bf 100644 --- a/lib/libutil/libutil.h +++ b/lib/libutil/libutil.h @@ -151,7 +151,7 @@ int uu_lock_txfr(const char *_ttyname, pid_t _pid); * Conditionally prototype the following functions if the include * files upon which they depend have been included. */ -#ifdef _STDIO_H_ +#ifdef __STDC_VERSION_STDIO_H__ char *fparseln(FILE *_fp, size_t *_len, size_t *_lineno, const char _delim[3], int _flags); #endif |
