From patchwork Fri Aug 12 18:47:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yaakov Selkowitz X-Patchwork-Id: 73866 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp311556qga; Fri, 12 Aug 2016 11:48:11 -0700 (PDT) X-Received: by 10.98.50.2 with SMTP id y2mr29560157pfy.138.1471027691725; Fri, 12 Aug 2016 11:48:11 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id g90si10150378pfa.13.2016.08.12.11.48.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Aug 2016 11:48:11 -0700 (PDT) Received-SPF: pass (google.com: domain of newlib-return-13977-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-13977-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=newlib-return-13977-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:in-reply-to :references; q=dns; s=default; b=s8/cKqPENv1K6LVrKjyWWTXMKyrwjlC DjWRiglnilo5z4qK1cflaNgSRdgmAJk6WnQ1kMeZIhXdTUgTdNu3UZlX03ms0h9A 9irlfoZqarFKkxxJ6kuHbgm0+ojairbNrlxrY6tqyTc/IjUMk1+GvtxGelVZoAmJ Q81DllJM4ZfE= 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:in-reply-to :references; s=default; bh=/zkhd/XM+Pljqgk9iIgWD6wMzH8=; b=KcPM2 vhMhz4+BSXYRzgtI44KahI/+1IGeNDXqFCEeF39U0gmOC0B8RMkPBYHJsRQhDmZR cifDG9FNbtfK58LDJln9uOGkbR67scVdhzUhinDMmbHMjAngMy0IT1dHVoVlOrBr URKr3Hb1XOtZkJffeV6WpuQpgxjaz0rb/khVp0= Received: (qmail 58140 invoked by alias); 12 Aug 2016 18:48:02 -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 58049 invoked by uid 89); 12 Aug 2016 18:48:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:766, H*MI:sk:2016081 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; Fri, 12 Aug 2016 18:48:00 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (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 4344561E57 for ; Fri, 12 Aug 2016 18:47:59 +0000 (UTC) Received: from localhost.localdomain (ovpn-116-66.rdu2.redhat.com [10.10.116.66]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u7CIlvEJ014448 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 12 Aug 2016 14:47:58 -0400 From: Yaakov Selkowitz To: newlib@sourceware.org Subject: [PATCH] Do not include wctype.h in wchar.h with _GNU_SOURCE Date: Fri, 12 Aug 2016 13:47:52 -0500 Message-Id: <20160812184752.9364-1-yselkowi@redhat.com> In-Reply-To: <20160812074438.x2zcke76mjhnjslp@calimero.vinschen.de> References: <20160812074438.x2zcke76mjhnjslp@calimero.vinschen.de> _GNU_SOURCE generally enables all features, but in this case the POSIX requirement to #include for these is preferred. Signed-off-by: Yaakov Selkowitz --- newlib/libc/include/wchar.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.8.3 diff --git a/newlib/libc/include/wchar.h b/newlib/libc/include/wchar.h index f4996ec..3a2b89b 100644 --- a/newlib/libc/include/wchar.h +++ b/newlib/libc/include/wchar.h @@ -33,7 +33,7 @@ typedef __gnuc_va_list va_list; #endif #endif /* __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE */ -#if __XSI_VISIBLE /* && __XSI_VISIBLE < 800 */ +#if __XSI_VISIBLE /* && __XSI_VISIBLE < 800 */ && !__GNU_VISIBLE #include #endif