From: pavenis AT lanet DOT lv To: JT Williams , djgpp AT delorie DOT com Date: Fri, 11 May 2001 19:16:52 +0300 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT 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 Precedence: bulk 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