-qxlcompatmacros
Category
Pragma equivalent
None
Purpose
Defines the following legacy macros: __IBMCPP__, __xlC__, __xlC_ver__, __IBMC__, and __xlc__. This option helps you migrate programs from IBM® XL C/C++ for Linux for big endian distributions to IBM XL C/C++ for Linux V13.1.2 for little endian distributions.
Defaults
-qxlcompatmacrosUsage
The -qxlcompatmacros option is enabled by default to help you migrate programs from Linux for big endian distributions to Linux for little endian distributions. This means that the compiler predefines __IBMCPP__, __xlC__, __xlC_ver__, __IBMC__, and __xlc__.
When you migrate programs from V13.1.1 Linux for little endian distributions to V13.1.2 Linux for little endian distributions, it is recommended that you use the -qnoxlcompatmacros option to undefine these legacy macros. This is because these legacy macros, if defined, might change your source code and result in compilation failure.
Predefined macros
The following macros are defined when the -qxlcompatmacros option is in effect; otherwise, they are undefined.
- __IBMCPP__
- __IBMC__
- __xlc__
- __xlC__
- __xlC_ver__