Print this page
2964 need POSIX 2008 locale object support
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Approved by: TBD

*** 25,40 **** */ /* Copyright (c) 1988 AT&T */ /* All Rights Reserved */ #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" { --- 25,42 ---- */ /* Copyright (c) 1988 AT&T */ /* All Rights Reserved */ + /* + * Copyright 2014 Garrett D'Amore <garrett@damore.org> + */ + #ifndef _LANGINFO_H #define _LANGINFO_H #include <sys/feature_tests.h> #include <nl_types.h> #ifdef __cplusplus extern "C" {
*** 148,157 **** --- 150,172 ---- char *nl_langinfo(nl_item); /* get a string from the database */ #else char *nl_langinfo(); /* get a string from the database */ #endif + #if defined(_XPG7) || !defined(_STRICT_SYMBOLS) + #ifndef _LOCALE_T + #define _LOCALE_T + typedef struct locale *locale_t; + #endif + + #if defined(__STDC__) + char *nl_langinfo_l(nl_item, locale_t); + #else + char *nl_langinfo_l(); + #endif + #endif + #ifdef __cplusplus } #endif #endif /* _LANGINFO_H */