delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/25/15:42:59

Date: Tue, 25 Aug 1998 15:42:29 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Carsten Svaneborg <zqex AT usa DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: Unix and __UNIX__ on __MSDOS__ and problems and a solution.
In-Reply-To: <35E283D5.A24FD0A4@usa.net>
Message-ID: <Pine.SUN.3.91.980825153851.7520m-100000@is>
MIME-Version: 1.0

On Tue, 25 Aug 1998, Carsten Svaneborg wrote:

> But how come 'unix' as well as '__unix__' is defined?

DJGPP defines `unix' and `__unix__' for a good reason.  Some ported 
utilities use that symbol for code that DJGPP uses, and will break if you 
remove them.  Since DJGPP is highly Posix-compliant, defining `unix' 
seems appropriate.

I think your decision to use `unix' as the condition for Unix-only code 
is flawed.  You should use __DJGPP__ for the DJGPP-specific stuff, like 
the FAQ suggests.

> And is there a list of already used defines somewhere?

Use the -dM switch to the compiler.

- Raw text -


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