From patchwork Fri Jul 15 14:18:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yaakov Selkowitz X-Patchwork-Id: 72112 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp651359qga; Fri, 15 Jul 2016 07:19:04 -0700 (PDT) X-Received: by 10.66.27.243 with SMTP id w19mr31940455pag.112.1468592344429; Fri, 15 Jul 2016 07:19:04 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id xq1si9425493pab.11.2016.07.15.07.19.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Jul 2016 07:19:04 -0700 (PDT) Received-SPF: pass (google.com: domain of newlib-return-13936-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-13936-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=newlib-return-13936-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=WeAHhoO2Sn0hC80xUrUcSDWTEaf0JRQXpUlhkfSW2yzAtSiTS8BvD zLWlMqU3RLqiukVC7kyruDBI4TNW82whqAa6PeoVkBb6Z6DSyGNOMJcTJqt3aOmq 7qGaPKvrRjJRgXxnZJdoJEUcQeWebZpx3n85mSkHC3JDn6vijOQD/0= 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=XLRqPDC44ZWtrHvqga8guQzGcgo=; b=adW3jEBBBM566mLSSIkR/0SPxrnT xw3G/0Tzxg6ecCiZbmIBWCIcxjGqInAV7cYjSERt+GFm5zK8drG4pqc6r/4JbZHI IyI+yYGOKj1MKjq/JZH9HPaQAExtKHG1V5+IeGjqtbbLmUpUOqLqaQQefS3VFDxK VnEqaUf0ufHYmB4= Received: (qmail 93078 invoked by alias); 15 Jul 2016 14:18:56 -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 93068 invoked by uid 89); 15 Jul 2016 14:18:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=sk:yselkow 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 (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 15 Jul 2016 14:18:55 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (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 476CA7F3F9 for ; Fri, 15 Jul 2016 14:18:53 +0000 (UTC) Received: from localhost.localdomain (ovpn-116-48.rdu2.redhat.com [10.10.116.48]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u6FEIpLe004554 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 15 Jul 2016 10:18:52 -0400 From: Yaakov Selkowitz To: newlib@sourceware.org Subject: [PATCH] math.h: fix guards on basic M_ constants Date: Fri, 15 Jul 2016 09:18:45 -0500 Message-Id: <20160715141845.13060-1-yselkowi@redhat.com> MAXFLOAT, M_PI, and friends date back to at least XPG4v2, so this guard was incorrect even prior to the feature test macros overhaul. Signed-off-by: Yaakov Selkowitz --- newlib/libc/include/math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.8.3 diff --git a/newlib/libc/include/math.h b/newlib/libc/include/math.h index 3725ac0..ebbdac6 100644 --- a/newlib/libc/include/math.h +++ b/newlib/libc/include/math.h @@ -628,7 +628,7 @@ extern int matherr _PARAMS((struct exception *e)); /* Useful constants. */ -#if __BSD_VISIBLE || __XSI_VISIBLE >= 500 +#if __BSD_VISIBLE || __XSI_VISIBLE #define MAXFLOAT 3.40282347e+38F