mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-26 20:12:44 +00:00
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 reappliesb35f0aa495
, chasingc25e55bcf8
, fixing ports build failures followingb35f0aa495
withoutc25e55bcf8
. PR: 281768 Sponsored by: Tarsnap Backup Inc. Signed-off-by: Graham Percival
This commit is contained in:
parent
1c82bbd865
commit
eb84c129d6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user