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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=Ma6wU2YLJs1Sq8nz D61+4UKnsj5wiskMOw+dPYtZkpS7PMhMlJ+qfVgWnxNMV6DgvJLtI9Vd/Sy43nB1 RP0VRg3xO7hSfSGdlwCGm9IAkjGXV8VDxJuGlnupnatravqijjEsiCSWfaA/+2Uv W5GuHeCBaNtBR8kWPvIFuoRv9S0= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=jLEma2f3+sfl/9+Jpo7KB4 joVIg=; b=mh0NjAvBXHcWqxy/DVa5ZLpFCHZImhQc6abRPN36GLixjQlPL+YHAf HxYATHo4BWyH0A1ZKYGGka4EL0tKonB+ThzgsU3Np5mdYn/zZ/n0COda64BBUZTA dNPFGh8IJaa6sK9xK9zXiBh9LT2RvZVEadlUrIXu6MeNLn4woAbU0= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 Subject: Re: Defining _GNU_SOURCE hides the declaration of aligned_alloc To: cygwin AT cygwin DOT com References: <56B12D61 DOT 7030200 AT cornell DOT edu> From: Yaakov Selkowitz Message-ID: <56B170B7.4090004@cygwin.com> Date: Tue, 2 Feb 2016 21:15:03 -0600 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 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