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 b35f0aa495, chasing c25e55bcf8, fixing ports build
failures following b35f0aa495 without c25e55bcf8.

PR:		281768
Sponsored by:	Tarsnap Backup Inc.
Signed-off-by:	Graham Percival
This commit is contained in:
Graham Percival 2024-09-29 17:06:29 -07:00 committed by Cy Schubert
parent 1c82bbd865
commit eb84c129d6

View File

@ -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