Date: Tue, 19 Jan 1999 11:43:24 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Daniel Reed cc: djgpp AT delorie DOT com, koehler AT telik DOT com Subject: Re: djgpp (dos) preproccessor directive In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.