Re: gcc/Cygwin awareness

2003-03-31 Thread John Williams
Hi Max, Max Bowsher wrote: John Williams wrote: 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. General answer to this kind of

Re: gcc/Cygwin awareness

2003-03-31 Thread Max Bowsher
John Williams wrote: > 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. General answer to this kind of question: $

Re: gcc/Cygwin awareness

2003-03-30 Thread John Williams
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 re

Re: gcc/Cygwin awareness

2003-03-30 Thread Elfyn McBratney
> Is there a macro defined in gcc when running under Cygwin as opposed to, > say, linux? Not too sure, All I could find was GCC_VERSION , __GNUC__ and IN_GCC . > I'd like to code something like > > #ifdef _GCC_UNDER_CYGWIN > blah blah > #else > blah blah > #endif You could use this #if define

gcc/Cygwin awareness

2003-03-30 Thread John Williams
Hi folks, Is there a macro defined in gcc when running under Cygwin as opposed to, say, linux? I'd like to code something like #ifdef _GCC_UNDER_CYGWIN blah blah #else blah blah #endif This is to get around the fact that Cygwin doesn't provide the libgen.h header file, which I need to build uC