Date: Tue, 25 Aug 1998 15:42:29 +0300 (IDT) From: Eli Zaretskii To: Carsten Svaneborg 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.