Macros indicating the XL C/C++ compiler

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

Predefined macro name Description
__IBMC__ C only. Indicates the level of the XL C compiler as an integer constant representing version, release, and modification number.
__IBMCPP__ C++ only. Indicates the level of the XL C++ compiler as an integer constant representing version, release, and modification number.
__xlc__ C only. Indicates the level of the XL C compiler as a string displaying the version, release, modification, and fix level.
__xlC__ C++ only. 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.