This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: incompatible types in header files
- From: "Dave Korn" <dk at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Tue, 19 Oct 2004 14:54:47 +0100
- Subject: RE: incompatible types in header files
> -----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/