From patchwork Thu Aug 11 21:37:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yaakov Selkowitz X-Patchwork-Id: 73819 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp318218qga; Thu, 11 Aug 2016 14:38:21 -0700 (PDT) X-Received: by 10.98.95.129 with SMTP id t123mr21002424pfb.148.1470951500936; Thu, 11 Aug 2016 14:38:20 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id bj7si5040364pab.58.2016.08.11.14.38.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Aug 2016 14:38:20 -0700 (PDT) Received-SPF: pass (google.com: domain of newlib-return-13973-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org; spf=pass (google.com: domain of newlib-return-13973-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=newlib-return-13973-patch=linaro.org@sourceware.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; q=dns; s= default; b=ABan1ypQRM2XK0M4WoQlv7byjsfFm6zzEGh3phxyDxXxjDPXrM7/c NTws0qzAtWTN+eFh6XNI/ayrE8xbegAWmiMbQKzgVf+drnyvjUQfnv6xej/Zm7zh RtFGuILQPHWYZjD6v1WPCRtkU8y0KSYkNTPZXywdQyztZHG7uf08Ek= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; s=default; bh=Q8V0oTgeB7DyPss0FQFDPFUMFR8=; b=iH/NHoL8oOPMNxh2o8UIRz7t6Jco iL0rCYtYwGjDeFYx8VH9Vv3os+XuyfjuB6LpgeE8k1ohasf+iMuy3lTfOkrH75LU HreLwC1aPMg6e7oVG4XA3+ICEKDEP3pFPWqFY8D4vBKy9o/fEX3nHhvP5jWqKrVI 0ugRViO96hqZdhg= 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-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Delivered-To: mailing list newlib@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 16:37:53 -0500 Message-Id: <20160811213753.1216-1-yselkowi@redhat.com> 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(+) -- 2.8.3 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