diff options
author | Graham Percival <gperciva@tarsnap.com> | 2024-09-30 00:06:29 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2024-10-02 18:01:39 +0000 |
commit | eb84c129d6d6b82238575946ba3552c9310f24f9 (patch) | |
tree | e6bccf71257cef7397a4c7194889bef115928740 /include | |
parent | 1c82bbd8650ab2c7247342dac7460d18fea90ed0 (diff) | |
download | src-eb84c129d6d6b82238575946ba3552c9310f24f9.tar.gz src-eb84c129d6d6b82238575946ba3552c9310f24f9.zip |
stdio.h: don't expose rsize_t unless __EXT1_VISIBLE
This is how the other typedefs for rsize_t handle it (in <stddef.h>,
<stdlib.h>, and <string.h>). In particular, we shouldn't have any
rsize_t if a C environment earlier C11 was requested.
This reapplies b35f0aa4952c, chasing c25e55bcf80b, fixing ports build
failures following b35f0aa4952c without c25e55bcf80b.
PR: 281768
Sponsored by: Tarsnap Backup Inc.
Signed-off-by: Graham Percival
Diffstat (limited to 'include')
-rw-r--r-- | include/stdio.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/stdio.h b/include/stdio.h index b0190d25eb4f..ee3ab3bfb986 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -48,10 +48,13 @@ typedef __size_t size_t; #define _SIZE_T_DECLARED #endif +#if __EXT1_VISIBLE +/* ISO/IEC 9899:2011 K.3.3.2 */ #ifndef _RSIZE_T_DEFINED #define _RSIZE_T_DEFINED typedef size_t rsize_t; #endif +#endif /* __EXT1_VISIBLE */ #if __POSIX_VISIBLE >= 200809 #ifndef _OFF_T_DECLARED |