delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Message-ID: | <20000623014835.15486.qmail@web120.yahoomail.com> |
Date: | Thu, 22 Jun 2000 18:48:35 -0700 (PDT) |
From: | Earnie Boyd <earnie_boyd AT yahoo DOT com> |
Reply-To: | earnie_boyd AT yahoo DOT com |
Subject: | RE: New GCC available for testing (TRY 3) -- fixes -mno-cygwin pr oblem |
To: | nhv AT cape DOT com |
Cc: | cygwin users <cygwin AT sourceware DOT cygnus DOT com> |
MIME-Version: | 1.0 |
--- Norman Vine <nhv AT cape DOT com> wrote: > Earnie Boyd writes: > > > >What does `touch dummy.c; gcc -c dummy.c -E -dM' output? > > > > This begs the question that I have had in my mind lately: > > What is the consensus of opinion as to the 'best' way to > differentiate a 'Cygwin' compile in a header file. > > I have been stumbling apon this a lot recently > #if defined( _WIN32 ) > > which IMHO breaks Cygwin > Me too, and that is why I modify the specs file to only define _WIN32 and WINNT if the -mno-cygwin switch is specified. > and have been changing it to > #if defined( _WIN32 ) && !defined( __CYGWIN__ ) > > but perhaps I should start using > #if defined( _WIN32 ) && !defined( unix ) > Just for the record, the most recent version added -mno-win32 which you could use and the unix define was just recently added as well. Regards, ===== --- Earnie Boyd: <mailto:earnie_boyd AT yahoo DOT com> __Cygwin: POSIX on Windows__ Cygwin Newbies: <http://www.freeyellow.com/members5/gw32/index.html> __Minimalist GNU for Windows__ Mingw32 List: <http://www.egroups.com/group/mingw32/> Mingw Home: <http://www.mingw.org/> __________________________________________________ Do You Yahoo!? Get Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |