Mail Archives: djgpp/1999/01/18/20:20:44.1
Subject: djgpp (dos) preproccessor directive
Newsgroups: comp.os.msdos.djgpp
Organization: ICGNetcom
Summary:
Keywords:
Hi
I have code I regularly build on both dos and unix (gcc is great!).
I now need to differentiate between unix and dos (to differentiate
system() calls of 'rm' and 'del') in one of my programs.
What (any?) preprocessor directives does djgpp (gcc, unix, dos, etc)
set so that the following is possible:
#ifdef _SOME_DJGPP_FLAG_?_
system("del file.dos");
#else
system("rm file.unix");
#endif
Sorry if the answer is "obvious", but I couldn't find it!
Thanks for any info,
Ryan
p.s. email koehler AT telik DOT com
- Raw text -