Macros related to the XL C/C++ compiler are always predefined, and are protected (the compiler will issue a warning if you try to undefine or redefine them).
| Predefined macro name | Description | Predefined value |
|---|---|---|
__IBMC__ |
Indicates the level of the XL C compiler. | An integer in the format VRM,
where :
In XL C/C++ V11.1, the value of the macro is 1110. |
__IBMCPP__ |
Indicates the level of the XL C++ compiler. | An integer in the format VRM,
where :
In XL C/C++ V11.1, the value of the macro is 1110. |
__xlc__ |
Indicates the level of the XL C compiler. | A string in the format "V.R.M.F",
where:
In XL C/C++ V11.1, the value of the macro is "11.1.0.0". |
| __xlC__ | Indicates the level of the XL C++ compiler. Using the XL C compiler also automatically defines this macro. | A four-digit hexadecimal integer in the
format 0xVVRR, where:
In XL C/C++ V11.1, the value of the macro is 0x0b01. |