This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH v3 18/24] Feature test macros overhaul: wchar.h
- From: Yaakov Selkowitz <yselkowi at redhat dot com>
- To: newlib at sourceware dot org
- Date: Mon, 14 Mar 2016 22:10:25 -0500
- Subject: [PATCH v3 18/24] Feature test macros overhaul: wchar.h
- Authentication-results: sourceware.org; auth=none
- References: <1458011431-9460-1-git-send-email-yselkowi at redhat dot com>
open_wmemstream is POSIX.1-2008.
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
newlib/libc/include/wchar.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/newlib/libc/include/wchar.h b/newlib/libc/include/wchar.h
index 6c2b8e4..251aa62 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
--
2.7.0