delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/02/03:27:02

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <20030402082521.61164.qmail@web21408.mail.yahoo.com>
Date: Wed, 2 Apr 2003 18:25:21 +1000 (EST)
From: =?iso-8859-1?q?Danny=20Smith?= <danny_r_smith_2001 AT yahoo DOT co DOT nz>
Subject: RE: gcc -mno-cygwin preprocessing: cygwin headers included.
To: burgers AT ecn DOT nl
Cc: cygwin AT cygwin DOT com
MIME-Version: 1.0

From: Teun Burgers <burgers at ecn dot nl> 
---
 > 
 > consider a file hello.c with the following two lines:
 > 
 > #include <stdio.h>
 > #include <stdarg.h>
 > 
 > The attached cygwin.txt is the output of gcc -E hello.c
 > The attached no-cygwin.txt is the output of gcc -mno-cygwin -E hello.c
 > 
 > The cygwin one includes /usr/include/stdio.h (OK) and 
 > /usr/lib/gcc-lib/i686-pc-cygwin/3.2/include/stdarg.h (OK)
 > 
 > The no-cygwin one includes /usr/include/mingw/stdio.h (OK) and 
 > /usr/lib/gcc-lib/i686-pc-cygwin/3.2/include/stdarg.h (NOT OK?).
 > 
 > Shouldn't the -mno-cygwin one include
 > /usr/lib/gcc-lib/i686-pc-mingw32/3.2/include/stdarg.h?
 > 
 
Should  be OK.  GCC's system includes ahould be same for mingw and cygwin (with
same version of gcc).  If there is a difference it is my fault. I think I put
in an RC_INVOKED guard in stdarg.h and stddef.h for mingw but they aren't
necessary anymore for mingw.  Nor are they harmful.

The only difference I could think of would be in float.h.  GCC used to use
different versions of float.h for i386 systems with 80 bit long doubles vs.
system with long double == 64 bit double.  But I think that is changed now and
is all taken care of by builtin defines. 

Danny

 > I use all packages current for today.
 > 
 > Teun
 > 

http://mobile.yahoo.com.au - Yahoo! Mobile
- Check & compose your email via SMS on your Telstra or Vodafone mobile.

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019