Print this page
2964 need POSIX 2008 locale object support

*** 29,40 **** #ifndef _LANGINFO_H #define _LANGINFO_H - #pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.2 */ - #include <sys/feature_tests.h> #include <nl_types.h> #ifdef __cplusplus extern "C" { --- 29,38 ----
*** 139,155 **** --- 137,160 ---- #if defined(__EXTENSIONS__) || !defined(_XOPEN_SOURCE) #define MAXSTRMSG 58 /* Maximum number of strings in langinfo */ #endif /* defined(__EXTENSIONS__) || !defined(_XOPEN_SOURCE) */ + #ifndef _LOCALE_T_DEFINED + #define _LOCALE_T_DEFINED + typedef struct _xlocale *locale_t; + #endif + /* * and the definitions of functions langinfo(3C) */ #if defined(__STDC__) char *nl_langinfo(nl_item); /* get a string from the database */ + char *nl_langinfo_l(nl_item, locale_t); #else char *nl_langinfo(); /* get a string from the database */ + char *nl_langinfo_l(); #endif #ifdef __cplusplus } #endif