HP C B.11.11.16 Release Notes
HP C/ANSI C Release Notes
New Features in Version B.11.11.06
Chapter 120
#define _UTF16(x) u##x
#define UTF16(y) _UTF16(#y)
typedef unsigned short utf16_t;
utf16_t *utf16_str = UTF16(y); // u”y”
int size = sizeof(u’t’); // size of 2 bytes
-mt Option
The new -mt option enables multi-threading capability without the need to set any other
flags, such as -l and -D. HP C compiler sets the appropriate flags as required.
• -D_REENTRANT
• -D_HPUX_SOURCE
• -D__POSIX_C_SOURCE=199506L
• libpthread
Following macros are used to compile multi-thread source code:
• _REENTRANT - Required by system header files that provide reentrant functions (suffixed
by _r).
• _HPUX_SOURCE - Required by HP C system header files.
• _POSIX_C_SOURCE=199506L - Required by pthread.
• libpthread.* - Kernel thread library used on 11.x systems.