HP aCC
Online References
Technical Documentation (including operating systems and other software)
Predefined Macros
See the Predefined Macros section of the HP aCC 6 Programmers Guide for a (possibly) incomplete list of macros predefined by the compiler.
Starting with HP aCC 6.15, the compiler supports the -dM option to list the #define directives the preprocessor encounters as it translates a file.
See also the Bjørn Reese's list of Pre-defined Compiler Macros.
HP aCC Predefined Macros |
|||
MACRO |
HP aCC OPTION |
VERSION |
DESCRIPTION |
__EDG__ |
|
6 |
Defined to 1 in all EDG-based HP aCC compilers. |
__HP_aCC |
|
all |
Defined to the version of the compiler in the format MMmmuu (2 digits for each of major, minor, and micro). |
__hpxstd98 |
3.80 |
Defined to 1 when the +hpxstd98 option is used. |
|
__hpux |
|
all |
Defined on all HP-UX versions. |
__ia64 |
|
5,6 |
Defined on HP IPF hardware. |
__hppa |
|
1, 3 |
Defined on PA-RISC hardware. |
__unix |
|
all |
Defined on all HP-UX versions. |
_BIG_ENDIAN |
|
all |
Defined on Big Endian versions of HP-UX (both IPF and PA-RISC). |
_ILP32 |
all |
Defined when +DD32 is in effect. |
|
_LP64, __LP64__ |
all |
Defined when +DD64 is in effect. |
|
__HPACC_NOEH |
all |
Defined when exceptions are disabled. |
|
_HPUX_SOURCE, __STDC_EXT__ |
all |
Defined when extensions are enabled. |
|
_FPWIDETYPES |
|
Defined when extended and quad floating-point data types including __float80 are enabled. |
|
_REENTRANT |
all |
Defined when compiling for thread safety. |
|
_POSIX_C_SOURCE=199506L |
all |
|
|
_HPUX_SOURCE |
all |
|
|
_THREAD_SAFE |
all |
|
|
_HP_NAMESPACE_STD |
|
Defined when the C++ Standard Library is declared in namespace std. |
|
_FLT_EVAL_METHOD |
all |
Defined according to the argument of the -fpeval option. |
|
_Math_errhandling |
|
all |
Always defined to MATH_ERREXCEPT. |
Discussion Forums
CXX-DEV mailing list (MARC archive)