Mail Archives: djgpp/1998/08/25/15:42:59
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 -