C/C++ Programmer's Guide (G06.27+, H06.03+)

Table Of Contents
Preprocessor Directives and Macros
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
12-14
Feature-Test Macros
_GUARDIAN_HOST Identifiers used by the C compiler running in the
Guardian environment
_GUARDIAN_TARGET Identifiers required for executing in the Guardian
environment
__G_SERIES_RVU Declarations that depend on a specific G-series RVU
and have the value G06.nn. Defined only for the
TNS/R native C/C++ compilers.
__H_SERIES_RVU Declarations that depend on a specific H-series RVU
and have the value H06.nn. Defined only for the
TNS/E native compilers.
_IEEE_FLOAT Identifiers that support IEEE standard-conforming
binary floating-point arithmetic
_IGNORE_LOCALE Identifiers that do not support internationalization
and support the C/POSIX locale only
_OSS_HOST Identifiers used by the C compiler running in the
OSS environment
_OSS_TARGET Identifiers required for executing in the OSS
environment
_POSIX_C_SOURCE=1 Identifiers required or permitted by the POSIX.1
standard
_POSIX_C_SOURCE=2 Identifiers required or permitted by the POSIX.1 and
POSIX.2 standards
_POSIX_SOURCE Identifiers required or permitted by the POSIX.1
standard
_SQL Identifiers required for processing embedded SQL
commands by the C compilers; defined only when
pragma sql or either flag -Wsql or flag -Wsqlcomp
is specified on the command line
__TANDEM_ARCH_ Identifiers required for use of the TNS, TNS/R, or
TNS/E architectures. This macro can have these
values:
0 indicates the TNS architecture
1 indicates the TNS/R architecture
2 indicates the TNS/E architecture
This macro is not defined for the TNS compilers.
_TANDEM_EXTENSIONS Identifiers required for compiling with extensions by
the native compilers; defined when pragma
extensions or -Wextensions is specified on the
command line
_TANDEM_SOURCE Identifiers required or permitted by extensions made
by HP for NonStop systems
Table 12-3. Predefined Feature-Test Macros (page 2 of 3)
Macro What It Defines