From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 73271 invoked by alias); 11 Aug 2016 21:38:12 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Received: (qmail 73262 invoked by uid 89); 11 Aug 2016 21:38:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=sk:__stdc_, sk:__STDC_, 20,6, xsi X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 11 Aug 2016 21:38:02 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F2CA981110 for ; Thu, 11 Aug 2016 21:38:00 +0000 (UTC) Received: from localhost.localdomain (ovpn-116-66.rdu2.redhat.com [10.10.116.66]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u7BLbxa3026947 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 11 Aug 2016 17:38:00 -0400 From: Yaakov Selkowitz To: newlib@sourceware.org Subject: [PATCH] Include wctype.h in wchar.h as an XSI extension Date: Thu, 11 Aug 2016 21:38:00 -0000 Message-Id: <20160811213753.1216-1-yselkowi@redhat.com> X-SW-Source: 2016/txt/msg00927.txt.bz2 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 --- 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 +#if __XSI_VISIBLE /* && __XSI_VISIBLE < 800 */ +#include +#endif + #ifndef WEOF # define WEOF ((wint_t)-1) #endif -- 2.8.3