Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin@cygwin.com
From: John Williams <jwilliams@itee.uq.edu.au>
Subject: Re: gcc/Cygwin awareness
Date: Mon, 31 Mar 2003 13:33:55 +1000
Lines: 10
Message-ID: <b68cun$ohl$1@main.gmane.org>
References: <b68arh$j9m$1@main.gmane.org> <002301c2f734$736febf0$9a7586d9@ellixia>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@main.gmane.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20030210
X-Accept-Language: en-us, en
In-Reply-To: <002301c2f734$736febf0$9a7586d9@ellixia>

Elfyn McBratney wrote:
> You could use this
> 
> #if defined(__GNUC__) && defined(__CYGWIN__)

So __CYGWIN__ is defined in the preprocessor environment when compiling 
under Cygwin?  That's precisely what I'm after, thanks.

John



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

