From 73e2f464198ae5f01cb826b5d1204f50a60d94b1 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Mon, 14 Mar 2016 17:24:48 -0500 Subject: Feature test macros overhaul: wchar.h open_wmemstream is POSIX.1-2008. Signed-off-by: Yaakov Selkowitz --- newlib/libc/include/wchar.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'newlib/libc/include') diff --git a/newlib/libc/include/wchar.h b/newlib/libc/include/wchar.h index 6c2b8e429..251aa62fb 100644 --- a/newlib/libc/include/wchar.h +++ b/newlib/libc/include/wchar.h @@ -189,7 +189,9 @@ wint_t _EXFUN(putwc_unlocked, (wchar_t, __FILE *)); wint_t _EXFUN(putwchar_unlocked, (wchar_t)); #endif +#if __POSIX_VISIBLE >= 200809 __FILE *_EXFUN (open_wmemstream, (wchar_t **, size_t *)); +#endif __FILE *_EXFUN (_open_wmemstream_r, (struct _reent *, wchar_t **, size_t *)); #ifndef __VALIST -- cgit v1.2.3