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

Table 27 Predefined Feature-Test Macros (continued)
What It DefinesMacro
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.
__G_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. For J-series RVUs, use the
equivalent H-series RVU.
__H_SERIES_RVU
Identifiers that support IEEE standard-conforming binary floating-point arithmetic_IEEE_FLOAT
Identifiers that do not support internationalization and support the C/POSIX
locale only
_IGNORE_LOCALE
Identifiers used by the C compiler running in the OSS environment_OSS_HOST
Identifiers required for executing in the OSS environment_OSS_TARGET
Identifiers required or permitted by the POSIX.1 standard_POSIX_C_SOURCE=1
Identifiers required or permitted by the POSIX.1 and POSIX.2 standards_POSIX_C_SOURCE=2
Identifiers required or permitted by the POSIX.1 standard_POSIX_SOURCE
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
_SQL
Identifiers required for use of the TNS, TNS/R, or TNS/E architectures. This
macro can have these values:
0
indicates the TNS architecture
_TANDEM_ARCH_
1
indicates the TNS/R architecture
2
indicates the TNS/E architecture
This macro is not defined for the TNS compilers.
Identifiers required for compiling with extensions by the native compilers; defined
when pragma EXTENSIONS or -Wextensions is specified on the command
line
_TANDEM_EXTENSIONS
Identifiers required or permitted by extensions made by HP for NonStop systems_TANDEM_SOURCE
Identifiers used by the TNS/E native C and C++ compilers; defined only for
the TNS/E native C/C++ compilers.
_TNS_E_TARGET
Identifiers used by the TNS/R native C and C++ compilers; defined only for
the TNS/R native C/C++ compilers.
_TNS_R_TARGET
Identifiers required for compiling on a PC running the Windows operating
system.
_WIN32_HOST
Identifiers required or permitted by the XPG4 specification_XOPEN_SOURCE
Identifiers specified in the XPG4.2 specification as extensions to the XPG4
specification
_XOPEN_SOURCE_EXTENDED
The _TANDEM_SOURCE macro makes supplementary functions defined by HP for NonStop systems.
If a module compiled for the OSS environment uses functions defined by HP, you must specify the
_TANDEM_SOURCE macro.
The _XOPEN_SOURCE macro makes visible functions defined by either the XPG4 or XPG4 Version
2 specifications. The _XOPEN_SOURCE_EXTENDED macro makes visible XPG4 Version 2 extensions
to functions that have base definitions defined in the XPG4 specification.
Feature-Test Macros 163