Mail Archives: djgpp/1999/01/19/04:47:56
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 -