Mail Archives: djgpp/1996/08/08/03:11:02
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).
- Raw text -