Date: Thu, 8 Aug 1996 10:06:20 +0200 (IST) From: Eli Zaretskii To: "Steven M. Gibson" <76711 DOT 2621 AT CompuServe DOT COM> Cc: djgpp AT delorie DOT com Subject: Re: Target-Dependent DEFINES ?? In-Reply-To: <4tprvs$l5v$1@mhade.production.compuserve.com> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 1 Aug 1996, Steven M. Gibson wrote: > Does GCC have any target-dependent DEFINES? I'd like to assemble > slightly different code under GCC/Unix than under GCC/PC ... and > I'd like to not have to REMEMBER to set my own DEFINE to do so. If you need to write code that is only compiled on DJGPP, use the __DJGPP__ symbol (like in "#ifdef __DJGPP__"). Other platforms have their own symbols, but that is specific to each platform. You can see what does GCC define automatically by looking at the `specs' file that exists on every GCC installation (for DJGPP, it is in the lib/ subdirectory).