From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24962 invoked by alias); 3 Feb 2016 03:15:33 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 24535 invoked by uid 89); 3 Feb 2016 03:15:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=H*M:cygwin, H*Ad:U*yselkowitz, Hx-languages-length:944, HContent-Transfer-Encoding:8bit 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; Wed, 03 Feb 2016 03:15:17 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id C30C6E1B96 for ; Wed, 3 Feb 2016 03:15:12 +0000 (UTC) Received: from [10.10.116.23] (ovpn-116-23.rdu2.redhat.com [10.10.116.23]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u133FB1U026319 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 2 Feb 2016 22:15:12 -0500 Subject: Re: Defining _GNU_SOURCE hides the declaration of aligned_alloc To: cygwin@cygwin.com References: <56B12D61.7030200@cornell.edu> From: Yaakov Selkowitz Message-ID: <56B170B7.4090004@cygwin.com> Date: Wed, 03 Feb 2016 03:15:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <56B12D61.7030200@cornell.edu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2016-02/txt/msg00030.txt.bz2 On 2016-02-02 16:27, Ken Brown wrote: > The issue in the Subject line came up in connection with an emacs bug > report. > > Here's a test case: [snip] > $ gcc test.c -Wimplicit-function-declaration > test.c: In function ‘main’: > test.c:7:3: warning: implicit declaration of function ‘aligned_alloc’ > > The cause is that the declaration of aligned_alloc in stdlib.h is > guarded by #if __ISO_C_VISIBLE >= 2011 || __cplusplus >= 201103L; but > defining _GNU_SOURCE causes __ISO_C_VISIBLE to be defined as 1999. > Here's an excerpt from /usr/include/sys/cdefs.h showing how this happens: [snip] > According to the discussion of the emacs bug I mentioned, Linux and > FreeBSD don't have this issue. Should Cygwin's headers be changed to > conform to those other platforms? Yes, it should. I have added this to my queue of such fixes, which I hope to post soon. -- Yaakov -- 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