Compiler Macros


Table of Contents

Compiler macros

PreprocessorDescriptionNotes
VAXC, vaxcVAX C compiler.Defined when /usr/bin/vcc is used.
VAX11C, vax11cVAX-11 C compiler.Defined when /usr/bin/vcc is used.
vaxPlatform is VAX.Defined when /usr/bin/cc is used.
VAXPlatform is VAX.Defined when /usr/bin/vcc is used.
ultrixThe system is ULTRIX. 
bsd4_2ULTRIX is a BSD. 
unixULTRIX is a Unix. 

Some of these are bogus, such as vax11c which is defined on all VAXen that are newer than the VAX-11. There are also some symbols defined via sys/ansi_compat.h that are worth looking at.

If neither vaxc/VAXC, vax11c/VAX11C, or __DECC are defined, then it is safe to assume the compiler is /usr/bin/cc.

Manual pages also hint at DEC C (the OSF/1 compiler?) being available for ULTRIX, but I don't have it on my ULTRIX 4.5 installation.

 
Return to top
 
Created: