C/C++ Programmer's Guide (G06.25+)

Preprocessor Directives and Macros
HP C/C++ Programmer’s Guide for NonStop Servers429301-002
12-14
Feature-Test Macros
_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 the
following 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
_TNS_E_TARGET Identifiers used by the TNS/E native C and C++
compilers; defined only for the TNS/E native C/C++
compilers.
_TNS_R_TARGET Identifiers used by the TNS/R native C and C++
compilers; defined only for the TNS/R native C/C++
compilers.
_WIN32_HOST Identifiers required for compiling on a PC running
the Windows operating system.
_XOPEN_SOURCE Identifiers required or permitted by the XPG4
specification
_XOPEN_SOURCE_EXTENDED Identifiers specified in the XPG4.2 specification as
extensions to the XPG4 specification
Table 12-3. Predefined Feature-Test Macros (page 2 of 2)
Macro What It Defines