cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/18/20:20:44.1

Newsgroups: comp.os.msdos.djgpp
From: koehler AT netcom DOT com (Koehler)
Subject: djgpp (dos) preproccessor directive
Message-ID: <koehlerF5s8Kz.M8q@netcom.com>
Organization: ICGNetcom
X-Newsreader: TIN [version 1.2 PL2]
Date: Tue, 19 Jan 1999 01:10:11 GMT
Lines: 30
Sender: koehler AT netcom3 DOT netcom DOT com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019