public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Include wctype.h in wchar.h as an XSI extension
@ 2016-08-11 21:38 Yaakov Selkowitz
  2016-08-12  7:44 ` Corinna Vinschen
  0 siblings, 1 reply; 4+ messages in thread
From: Yaakov Selkowitz @ 2016-08-11 21:38 UTC (permalink / raw)
  To: newlib

However, note that this inclusion is obsolescent in SUSv4 and therefore
may be removed in the next revision.

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/wchar.h.html

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
 newlib/libc/include/wchar.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/newlib/libc/include/wchar.h b/newlib/libc/include/wchar.h
index d5fc26f..e5b840d 100644
--- a/newlib/libc/include/wchar.h
+++ b/newlib/libc/include/wchar.h
@@ -20,6 +20,10 @@
 /* For __STDC_ISO_10646__ */
 #include <sys/features.h>
 
+#if __XSI_VISIBLE /* && __XSI_VISIBLE < 800 */
+#include <wctype.h>
+#endif
+
 #ifndef WEOF
 # define WEOF ((wint_t)-1)
 #endif
-- 
2.8.3

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-08-12 19:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-11 21:38 [PATCH] Include wctype.h in wchar.h as an XSI extension Yaakov Selkowitz
2016-08-12  7:44 ` Corinna Vinschen
2016-08-12 18:48   ` [PATCH] Do not include wctype.h in wchar.h with _GNU_SOURCE Yaakov Selkowitz
2016-08-12 19:24     ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).