Subject: Re: gcc -U_WIN32 pitfalls!
From: Geoffrey Noer <[email-masked]>
To: Mumit Khan <[email-masked]>
Cc: Anders Norlander <[email-masked]>, [email-masked]
Date: Mon, 26 Apr 1999 18:25:30 -0700

> > 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: [email-masked]
Cygnus Solutions

--
Want to unsubscribe from this list?
Send a message to [email-masked]