incompatible types in header files
Dave Korn
dk@artimi.com
Tue Oct 19 14:26:00 GMT 2004
> -----Original Message-----
> From: cygwin-owner On Behalf Of Siegmar Gross
> Sent: 19 October 2004 14:44
> Hi,
>
> /usr/include/sys/features.h suggests to define "__rtems__" if you want
> POSIX functionality.
The copy on my system doesn't make any 'suggestions' at all. It just has
a bunch of feature-test macros enclosed in #ifdef-guards.
> Unfortunately there are incompatible types so that
> the compilation breaks.
That's because adding a #define to your code doesn't actually turn cygwin
into the RTEMS operating system. If you #defined __svr4__, it wouldn't turn
your PC into a SunOS box either.
Merely #defining a feature test macro doesn't automagically implement the
feature if cygwin doesn't already have it. It just makes the feature test
invalid.
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list