C++ User's Guide

Values

The following values are predefined for SPARC and x86:

__BUILTIN_VA_ARG_INCR (for the __builtin_alloca, __builtin_va_alist, and __builtin_va_arg_incr keywords in varargs.h, stdarg.h, and sys/varargs.h)

_ _cplusplus

_ _DATE_ _

_ _FILE_ _

__LINE_ _

_ _STDC_ _

_ _TIME_ _

__sun

The following values are predefined for sun

_ _SUNPRO_CC=0x500 (The value of _ _SUNPRO_CC indicates the release number of the compiler)

_ _SUNPRO_CC_COMPAT=(4|5)

_ _SVR4

_ _'uname -s'_'uname -r'(Where uname is the output of uname -s with invalid characters replaced by underscores, as in -D__SunOS_5_3; -D__SunOS_5_4)

_ _unix

The following values are predefined for UNIX

_WCHAR_T

The following values are predefined for SPARC only:

_ _sparc (32-bit compilation modes only)

The following values are predefined for SPARC v9 only:

_ _sparcv9 (64-bit compilation modes only)

The following values are predefined for x86 only:

_ _i386

You can use these values in such preprocessor conditionals as #ifdef.