From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: #ifndef O_BINARY Date: 11 May 2001 15:57:38 GMT Organization: Aachen University of Technology (RWTH) Lines: 15 Message-ID: <9dh25i$24r$1@nets3.rz.RWTH-Aachen.DE> References: <20010511094148 DOT F29774 AT kendall DOT sfbr DOT org> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 989596658 2203 137.226.32.75 (11 May 2001 15:57:38 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 11 May 2001 15:57:38 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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? Because someone might be wanting to compile dtou.c on a platform other than DOS, where O_BINARY usually won't exist. With to a few changes like this which people (including me) have put into the code, you can even do the whole DJLSR build on another platform, provided you have a platform-to-DJGPP crosscompiler installed, first. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.