| Macro | Description | ||||
|---|---|---|---|---|---|
| Set to the integer 1. Indicates the product is a 32-bit compiler. | |||||
| Indicates that the operating system is AIX. | |||||
| Indicates that the operating system is AIX version 3.2 or higher. | |||||
| Indicates that the operating system is AIX version 4.1 or higher. | |||||
| 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. | ||||
| 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. | ||||
| 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(). | |||||
| Indicates that the host hardware is an Intel processor. | |||||
| Indicates that the host hardware is Big Endian. | |||||
| Indicates that the host hardware is an Little Endian. | |||||
| Indicates that the host hardware is an RISC 6000 processor. | |||||
| Indicates that the host operating system is AIX. | |||||
| Indicates that the host operating system is OS/2. | |||||
| Indicates that the host operating system is Windows. | |||||
| Indicates the version number of the C compiler. | |||||
| 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. | ||||
__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. | ||||
| 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. |
||||
| 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. | ||||
| Indicates that information about default libraries will not be included in object files. Defined using the link(linkwithsharedlib, ...) option. | |||||
| Set to the integer 1. Indicates the product is an OS/2 compiler. | |||||
| Indicates that the operating system is AIX version 4.1 or higher | |||||
| 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++. | |||||
| 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++. | |||||
| Indicates the subsystem libraries are being used. Defined using the link(standalone, ...) compiler option. | |||||
| The integer 1 (one) indicates that the C compiler conforms to the ANSI standard. | |||||
| Indicates that the compiler supports __stdcall linkage. | |||||
| 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. | |||||
| Indicates that the target hardware is Big Endian. | |||||
| Indicates that the target hardware is an Little Endian. | |||||
| 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. | ||||
| Defined to avoid the illegal typedefs in the system header. | |||||
| Defined to avoid the illegal typedefs in the system header. | |||||
| Defined to avoid the illegal typedefs in the system header. | |||||
| Indicates that the compiler generates Win32 code. Defined when the /qwin32s compiler option is set. | |||||
| Set to the integer 1. Indicates the product is a Windows compiler. | |||||
A hexadecimal constant the version
number of the compiler. The version is in the form:0xVVRR where:
|
![]()
ISO/ANSI Standard Predefined Macros
Macros No Longer Supported in VisualAge
C++ v4.0
