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]

gcc/Cygwin awareness


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/


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