aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham Percival <gperciva@tarsnap.com>2024-09-30 16:37:59 +0000
committerCy Schubert <cy@FreeBSD.org>2024-10-01 03:07:43 +0000
commitb35f0aa4952cf03f1b2093b110607c13dd2ec991 (patch)
treebb3890cfd82c54ba318c87ef32353a95f09fddde
parenteb345e05ac6602eeef0c33fce9025bbc8ec44d0f (diff)
downloadsrc-b35f0aa4952cf03f1b2093b110607c13dd2ec991.tar.gz
src-b35f0aa4952cf03f1b2093b110607c13dd2ec991.zip
stdio.h: don't expose rsize_t unless __EXT1_VISIBLE
PR: 281768 Fixes: c13559d31e90 MFC after: 1 week
-rw-r--r--include/stdio.h3
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