This is the mail archive of the cygwin@sourceware.cygnus.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
Re: gcc -U_WIN32 pitfalls!
> > 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@cygnus.com
Cygnus Solutions
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com