diff options
Diffstat (limited to 'usr/src/lib/libshell/common/features/locale')
-rw-r--r-- | usr/src/lib/libshell/common/features/locale | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/usr/src/lib/libshell/common/features/locale b/usr/src/lib/libshell/common/features/locale new file mode 100644 index 0000000000..ee9bcae6fe --- /dev/null +++ b/usr/src/lib/libshell/common/features/locale @@ -0,0 +1,25 @@ +hdr locale,wchar +lib locale,localeconv,wctype,iswctype,iswblank +cat{ + #if _PACKAGE_ast + # undef _hdr_locale + # define _hdr_locale 1 + #else + # ifdef _hdr_locale + # include <locale.h> + # ifndef LC_MESSAGES + # define LC_MESSAGES LC_ALL + # endif /* LC_MESSAGES */ + # endif /* _hdr_locale */ + #endif /* _PACKAGE_ast */ + #ifdef _hdr_locale + # ifdef _lib_localeconv + static struct lconv *lp; + # define GETDECIMAL(x) (((lp=localeconv()) && lp->decimal_point && *lp->decimal_point) ? *lp->decimal_point : '.' ) + # else + # define GETDECIMAL(x) ('.') + # endif /* _lib_localeconv */ + #else + # define GETDECIMAL(x) ('.') + #endif /* _hdr_locale */ +}end |