www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/05/11/12:18:36

From: pavenis AT lanet DOT lv
To: JT Williams <jeffw AT darwin DOT sfbr DOT org>, djgpp AT delorie DOT com
Date: Fri, 11 May 2001 19:16:52 +0300
MIME-Version: 1.0
Subject: Re: #ifndef O_BINARY
Message-ID: <3AFC3AA4.5343.A0806B@localhost>
In-reply-to: <20010511094148.F29774@kendall.sfbr.org>
X-mailer: Pegasus Mail for Win32 (v3.12c)
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 11 May 2001, at 9:41, JT Williams wrote:

> What is the purpose of the following bit of preprocessor code from
> `dtou.c' and `utod.c'?  Why would O_BINARY not already be defined?
> 
> #ifndef O_BINARY
> #define O_BINARY 0
> #endif
> 

It's added to make both utilities portable to other systems which don't
have O_BINARY. For example I can compile and use both under Linux
where there is no definition of  O_BINARY

Andris

- Raw text -


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