This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: cygqwin with mingw32 question


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]