delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/09/14/09:48:19

Date: Tue, 14 Sep 93 09:02:53 -0400
From: DJ Delorie <dj AT ctron DOT com>
To: davis AT pacific DOT mps DOT ohio-state DOT edu
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: FAQ: How to identify GCC under DOS.

>    I have an application that runs on various OS, e.g., VMS, Unix (Linux,
> Ultrix,...) and MSDOS.  It seems that DJGPP gcc defines both i386 and unix.
> Linux also defines these.  Is there a preprocessor symbol that uniquely
> specifies DJGPP gcc under MSDOS?

The correct symbol to use in this case is __GO32__ which is only
defined for djgpp (go32.exe) and no other compiler.


- Raw text -


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