www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/19/04:47:56

Date: Tue, 19 Jan 1999 11:43:24 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Daniel Reed <djr AT narnia DOT n DOT ml DOT org>
cc: djgpp AT delorie DOT com, koehler AT telik DOT com
Subject: Re: djgpp (dos) preproccessor directive
In-Reply-To: <Pine.LNX.4.05.9901182104190.27242-100000@narnia.n.ml.org>
Message-ID: <Pine.SUN.3.91.990119114308.12893L-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Mon, 18 Jan 1999, Daniel Reed wrote:

> However, GCC will always #define unix when compiling under Linux/etc.*, so
> you could use
> #ifdef unix
> 	system("unix-centric command");
> #else
> 	system("DOS-centric command");
> #endif

This won't work, because DJGPP defines `unix' as well (there are good
reasons why it does so, btw).

It is generally a good idea to test your suggestions before posting
them, or at least to mention that they are untested.  Otherwise, you
risk to confuse the confused.

- Raw text -


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