delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=NDBfiN/ujbZ934NJFjGD6uLRC/aJrgAx68F+e4cX/8xgAr68zfhq5 | |
LO8v0OnP2a9ovlKDzZMUZU0lLIOiXiIRGP3LhdmIG8WC2C5/DsQtBYi/m5llRFxb | |
4QxitsqcHQ9VaUVIINzrcvHtip8sJm1zAtOZnBc8SrGxFbFsrxEQok= | |
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:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=tVsm+7by2rVHTOnskvEwAXyxkhA=; b=DguF9l0A8RCqI2hVGGTeu/pDeyCO | |
XtMMwnPkU7kbX8HWn8jDo9Tcyo8DkHOSLSljSnPddmfmFVd0pWF6jJ8Y+ksJNE7g | |
wOmPsDBQ52YRmtA3Z+CwGZBVUn7Bdq3I9cajWyPDmGHc0+oqfnTC3Lzm4b2hxmyb | |
1RimvmNtVbgt/h4= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-Spam-SWARE-Status: | No, score=-1.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1 |
Date: | Wed, 22 May 2013 19:58:06 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Inconsistency with coreutils: _Static_assert() |
Message-ID: | <20130522175806.GE22259@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <97bfaa4aab229c706de5732905c96b44 AT denis-excoffier DOT org> <20130521160846 DOT GP2406 AT calimero DOT vinschen DOT de> <4DB22033-B92B-45C0-81F3-72D10CBDA8C0 AT Denis-Excoffier DOT org> <20130522085310 DOT GV2406 AT calimero DOT vinschen DOT de> <7E8B4273-EEA0-4E04-B1F5-B097290EE0B4 AT Denis-Excoffier DOT org> |
MIME-Version: | 1.0 |
In-Reply-To: | <7E8B4273-EEA0-4E04-B1F5-B097290EE0B4@Denis-Excoffier.org> |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
On May 22 18:17, Denis Excoffier wrote: > On 2013-05-22 10:53, Corinna Vinschen wrote: > > Can you test this patch to sys/cdefs.h, please? > > > > Index: sys/cdefs.h > > =================================================================== > > RCS file: /cvs/src/src/newlib/libc/include/sys/cdefs.h,v > > retrieving revision 1.4 > > diff -u -p -r1.4 cdefs.h > > --- sys/cdefs.h 22 Apr 2013 10:28:05 -0000 1.4 > > +++ sys/cdefs.h 22 May 2013 08:52:51 -0000 > > @@ -267,7 +267,9 @@ > > #define _Alignof(x) __alignof(x) > > #define _Noreturn __dead2 > > #define _Thread_local __thread > > -#ifdef __COUNTER__ > > +#if __GNUC_PREREQ__(4, 6) && !defined(__cplusplus) > > +/* Do nothing: _Static_assert() works as per C11 */ > > +#elif defined(__COUNTER__) > > #define _Static_assert(x, y) __Static_assert(x, __COUNTER__) > > #define __Static_assert(x, y) ___Static_assert(x, y) > > #define ___Static_assert(x, y) typedef char __assert_ ## y[(x) ? 1 : -1] > > > This patch works perfectly. Thank you. Thanks for testing. I applied the patch. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |