delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/30/09:47:55

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Reply-To: <nhv AT cape DOT com>
From: "Norman Vine" <nhv AT cape DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: cygqwin with mingw32 question
Date: Sat, 30 Mar 2002 09:50:48 -0500
Message-ID: <000301c1d7fa$48659fe0$a300a8c0@nhv>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
In-reply-to: <2515-Fri29Mar2002121435+0000-starksb@ebi.ac.uk>
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Importance: Normal

David Starks-Browning writes:
>
>On Friday 29 Mar 02, Jonathan Wilson writes:
>> I did see that but what I dont understand is if __CYGWIN__ 
>is defined 
>> when -mno-cygwin is selected.
>
>Try it!  Bet you would have learned faster than asking here!  (Would
>have saved *me* some time, that's for sure...)
>
>> I also need to know if cygwin GCC defines some specific flag that I can 
>> test for that identifies it as GCC.
>
>"info cpp"

Since this question comes up quite frequently
maybe we could add the following 'tip' to the faq

Q) What preprocessor symbols does Cygwin define
A)  Use the tool Luke :-)

% echo > jnk.c
% gcc -E -dM jnk.c
% gcc -mno-cygwin -E -dM jnk.c
% rm jnk.c

HTH

Norman

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019