Macros indicating the XL C/C++ compiler

Predefined macros related to the XL C/C++ compiler are always defined.

Predefined macro name Description
C only. __IBMC__ Indicates the level of the XL C compiler as an integer constant representing version, release, and modification number.
C++ only. __IBMCPP__ Indicates the level of the XL C++ compiler as an integer constant representing version, release, and modification number.
C only. __xlc__ Indicates the level of the XL C compiler as a string displaying the version, release, modification, and fix level.
__xlC__ Indicates the level of the XL C++ compiler as a three-digit hexadecimal constant, representing version, release, and modification number. Using the XL C compiler also automatically defines this macro.