delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Date: | Mon, 26 Apr 1999 18:25:30 -0700 |
From: | Geoffrey Noer <noer AT cygnus DOT com> |
To: | Mumit Khan <khan AT xraylith DOT wisc DOT EDU> |
Cc: | Anders Norlander <anorland AT hem2 DOT passagen DOT se>, cygwin AT sourceware DOT cygnus DOT com |
Subject: | Re: gcc -U_WIN32 pitfalls! |
Message-ID: | <19990426182530.E21666@cygnus.com> |
References: | <37218038 DOT 23663084 AT hem2 DOT passagen DOT se> <199904250104 DOT UAA09243 AT modi DOT xraylith DOT wisc DOT edu> |
Mime-Version: | 1.0 |
X-Mailer: | Mutt 0.95.1i |
In-Reply-To: | <199904250104.UAA09243@modi.xraylith.wisc.edu>; from Mumit Khan on Sat, Apr 24, 1999 at 08:04:04PM -0500 |
> > it should be: > > #if defined (GO32) || defined (__MSDOS__) || defined (_WIN32) || > > defined(__CYGWIN__) Thanks, fixed it in the current newlib development sources. [...] > --- sys/fcntl.h.~1 Sat Apr 24 19:46:24 1999 > +++ sys/fcntl.h Sat Apr 24 19:47:38 1999 > @@ -43,7 +43,7 @@ extern "C" { > #define O_NONBLOCK _FNONBLOCK > #define O_NOCTTY _FNOCTTY > /* For machines which care - */ > -#ifdef _WIN32 > +#if defined (_WIN32) || defined (__CYGWIN__) > #define _FBINARY 0x10000 > #define _FTEXT 0x20000 > #define _FNOINHERIT 0x40000 > @@ -64,7 +64,7 @@ extern "C" { > #define _O_BINARY O_BINARY > #define _O_RAW O_BINARY > #define _O_NOINHERIT O_NOINHERIT > -#endif > +#endif /* _WIN32 || __CYGWIN__ */ Fixed too. -- Geoffrey Noer Email: noer AT cygnus DOT com Cygnus Solutions -- 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 |