VisualAge C++ Predefined Macro Names

Macro Description
__32BIT__ Set to the integer 1. Indicates the product is a 32-bit compiler.
_AIX Indicates that the operating system is AIX.
_AIX32 Indicates that the operating system is AIX version 3.2 or higher.
_AIX41 Indicates that the operating system is AIX version 4.1 or higher.
_AIX43 Indicates that the operating system is AIX version 4.3 or higher.
__ANSI__ Allows only language constructs that conform to ISO/ANSI C standard. Defined using the lang(level, ansi) option.
_ARCH_* Indicates that the compiler generates code to run on the processor or family of processors denoted by the wildcard (*). E.g.: _ARCH_PENTIUM2, _ARCH_PWR.
_CHAR_SIGNED Indicates default character type is signed. Defined when the #pragma chars(signed) directive is in effect, or when the lang(signedchars, ..) compiler option is set.
_CHAR_UNSIGNED Indicates default character type is unsigned. Defined when the #pragma chars(unsigned) directive is in effect, or when the lang(signedchars, ..) compiler option is set.
__DBCS__ Indicates DBCS support is enabled. Defined using the lang(dbcs, ...) compiler option.
__DEBUG_ALLOC__ Maps memory management functions to their debug versions. Defined using the alloc(debug, ...) compiler option.
__DIGRAPHS__ Indicates whether standard digraphs and keyword operators are allowed in your source. Defined using the lang(digraphs, ..) option.
__DLL__ or _DLL Indicates code for a DLL is being compiled. Defined using the target[...] configuration file directive.
__EXTENDED__ Allows additional language constructs provided by the VisualAge C++ implementation. Defined using the lang(level, extended) option.
_FP_INLINE Generates inline instructions for the following floating-point library functions, as defined in math.h, when targetting an Intel processor: fcos(), fsin(), fptan(), facos(), fasin(), fpatan(), and fsqrt().
__HHW_INTEL__ Indicates that the host hardware is an Intel processor.
__HHW_BIG_ENDIAN__ Indicates that the host hardware is Big Endian.
__HHW_LITTLE_ENDIAN__ Indicates that the host hardware is an Little Endian.
__HHW_RS6000__ Indicates that the host hardware is an RISC 6000 processor.
__HOS_AIX__ Indicates that the host operating system is AIX.
__HOS_OS2__ Indicates that the host operating system is OS/2.
__HOS_WIN__ Indicates that the host operating system is Windows.
__IBMC__ Indicates the version number of the C compiler.
__IBMCPP__ Indicates the version number of the C++ compiler. Value is 400.
__IMPORTLIB__ Indicates that dynamic linking is used. Defined using the link(linkwithsharedlib, ...) option.
_LONG_LONG Macro defined when the compiler is in a mode that permits long long int and unsigned long long int types.
__LONGDOUBLE128
__LONGDOUBLE80
__LONGDOUBLE64
Sets the number of bits to use when representing the value of a long double. Under AIX, the available options are 128 and 64 bits. Under OS/2 and Windows, the available options are 80 and 64 bits.
_M_I386 Indicates code is being compiled for a 386 chip or higher. Value is 1.
_M_IX86 Indicates code is being compiled for a 386 chip or higher. Value is 500.
Defined using the opt(tune, processor) compiler options.
__MATH__ Instructs the compiler to generate substitute code for calls to some math functions available in the standard C runtime libraries, if appropriate. The functions handled this way are defined as replacement text for macros that begin with two underscores (__) in the math.h header file.
__MULTI__ or _MT Indicates multithread code is being generated. Defined using the link(linkwithmultithreadlib, ...) compiler option.
__NO_DEFAULT_LIBS__ Indicates that information about default libraries will not be included in object files. Defined using the link(linkwithsharedlib, ...) option.
__OS2__ Set to the integer 1. Indicates the product is an OS/2 compiler.
_POWER Indicates that the operating system is AIX version 4.1 or higher
_PUSHPOP_SUPPORTED  
__SAA__ Allows only language constructs that conform to the most recent level of SAA C standards. Defined using the lang(level, extended) option. This macro is not defined for C++.
__SAAL2__ Allows only language constructs that conform to SAA Level 2 C standards. Defined using the lang(level, extended) option. This macro is not defined for C++.
__SPC__ Indicates the subsystem libraries are being used. Defined using the link(standalone, ...) compiler option.
__STDC__ The integer 1 (one) indicates that the C compiler conforms to the ANSI standard.
_STDCALL_SUPPORTED Indicates that the compiler supports __stdcall linkage.
__STR__ Instructs the compiler to generate substitute code for calls to some string functions available in the standard C runtime libraries, if appropriate. The functions handled this way are defined as replacement text for macros that begin with two underscores (__) in the string.h header file.
__THW_BIG_ENDIAN__ Indicates that the target hardware is Big Endian.
__THW_LITTLE_ENDIAN__ Indicates that the target hardware is an Little Endian.
__TILED__ Indicates tiled memory is being used.
__TOS_AIX__ Indicates that the target operating system is AIX.
__TOS_OS2__ Indicates that the target operating system is OS/2.
__TOS_WIN__ Indicates that the target operating system is Windows.
_WCHAR_T Defined to avoid the illegal typedefs in the system header.
__wchar_t Defined to avoid the illegal typedefs in the system header.
_WCHAR_T_DEFINED Defined to avoid the illegal typedefs in the system header.
_WIN32 Indicates that the compiler generates Win32 code. Defined when the /qwin32s compiler option is set.
__WINDOWS__ Set to the integer 1. Indicates the product is a Windows compiler.
__xlC__ A hexadecimal constant the version number of the compiler. The version is in the form:
0xVVRR

where:

VV represents the compiler version number
RR represents the compiler release number


ISO/ANSI Standard Predefined Macros
Macros No Longer Supported in VisualAge C++ v4.0