The following identifier is predefined as an object-like macro:
Table 3-4 Predefined Identifier
Identifier |
Description |
__STDC__ |
__STDC__ 1 -Xc __STDC__ 0 -Xa, -Xt Not defined -Xs |
The compiler will issue a warning if __STDC__ is undefined (#undef __STDC__). __STDC__ is not defined in -Xs mode.
Predefinitions (not valid in -Xc mode):
sun
unix
sparc (SPARC)
i386 (Intel)
The following predefinitions are valid in all modes:
_ _sun
_ _unix
_ _SUNPRO_C=0x500
_ _`uname -s`_`uname -r` (example: _ _SunOS_5_7)
_ _sparc (SPARC)
_ _i386 (Intel)
_ _BUILTIN_VA_ARG_INCR
_ _SVR4
_ _sparcv9 (-Xarch=v9, v9a )
The compiler also predefines the object-like macro _ _PRAGMA_REDEFINE_EXTNAME
to indicate that the pragma will be recognized.
The following is predefined in -Xa and -Xt modes only:
_ _RESTRICT