|
|
Useful Stuff
Compiler macros
VAXC, vaxc |
VAX C compiler |
Defined when /usr/bin/vcc
is used. |
VAX11C, vax11c |
VAX-11 C compiler |
Defined when /usr/bin/vcc
is used. |
vax |
Platform is VAX |
Defined when /usr/bin/cc
is used. |
VAX |
Platform is VAX |
Defined when /usr/bin/vcc
is used. |
ultrix |
Platform is ULTRIX |
|
bsd4_2 |
ULTRIX is a BSD |
|
unix |
ULTRIX 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.
|