Sun Studio 12: C User's Guide

2.9 Predefined Names

The following identifier is predefined as an object-like macro:

Table 2–3 Predefined Identifier




__STDC__ 1 -Xc

__STDC__ 0 -Xa, -Xt

Not defined -Xs

The compiler issues a warning if __STDC__ is undefined (#undef __STDC__). __STDC__ is not defined in -Xs mode.

Predefinitions (not valid in -Xc mode):

The following predefinitions are valid in all modes:

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: