gcc/Cygwin awareness

John Williams jwilliams@itee.uq.edu.au
Mon Mar 31 06:09:00 GMT 2003


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 uClibc for this cross-platform 
project I'm doing.

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/



More information about the Cygwin mailing list