Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
From: "Dave Korn" <dk@artimi.com>
To: <cygwin@cygwin.com>
Subject: RE: incompatible types in header files
Date: Tue, 19 Oct 2004 14:54:47 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
In-Reply-To: <200410191343.i9JDhqUn015478@tyr.informatik.fh-fulda.de>
Message-ID: <NUTMEGXsL1c00goZolm00000052@NUTMEG.CAM.ARTIMI.COM>
X-OriginalArrivalTime: 19 Oct 2004 13:54:47.0437 (UTC) FILETIME=[32015BD0:01C4B5E3]

> -----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/

