xref: /titanic_52/usr/src/cmd/ast/libshell/i386/FEATURE/locale (revision 906afcb89d0412cc073b95c2d701a804a8cdb62c)
1*906afcb8SAndy Fiddaman/* : : generated from contrib/ast/src/cmd/ksh93/features/locale by iffe version 2012-07-17 : : */
2*906afcb8SAndy Fiddaman#ifndef _def_locale_ksh93
3*906afcb8SAndy Fiddaman#define _def_locale_ksh93	1
4*906afcb8SAndy Fiddaman#define _sys_types	1	/* #include <sys/types.h> ok */
5*906afcb8SAndy Fiddaman#define _hdr_locale	1	/* #include <locale.h> ok */
6*906afcb8SAndy Fiddaman#define _hdr_wchar	1	/* #include <wchar.h> ok */
7*906afcb8SAndy Fiddaman#define _hdr_wctype	1	/* #include <wctype.h> ok */
8*906afcb8SAndy Fiddaman#define _lib_localeconv	1	/* localeconv() in default lib(s) */
9*906afcb8SAndy Fiddaman#define _lib_wctype	1	/* wctype() in default lib(s) */
10*906afcb8SAndy Fiddaman#define _lib_iswctype	1	/* iswctype() in default lib(s) */
11*906afcb8SAndy Fiddaman#define _lib_iswblank	1	/* iswblank() in default lib(s) */
12*906afcb8SAndy Fiddaman#define _lib_wctrans	1	/* wctrans() in default lib(s) */
13*906afcb8SAndy Fiddaman#define _lib_towctrans	1	/* towctrans() in default lib(s) */
14*906afcb8SAndy Fiddaman#define _hdr_time	1	/* #include <time.h> ok */
15*906afcb8SAndy Fiddaman#define _sys_time	1	/* #include <sys/time.h> ok */
16*906afcb8SAndy Fiddaman#define _sys_times	1	/* #include <sys/times.h> ok */
17*906afcb8SAndy Fiddaman#define _hdr_stddef	1	/* #include <stddef.h> ok */
18*906afcb8SAndy Fiddaman#define _hdr_stdlib	1	/* #include <stdlib.h> ok */
19*906afcb8SAndy Fiddaman#define _typ_wctrans_t	1	/* wctrans_t is a type */
20*906afcb8SAndy Fiddaman#if _PACKAGE_ast
21*906afcb8SAndy Fiddaman#   undef  _hdr_locale
22*906afcb8SAndy Fiddaman#   define _hdr_locale 1
23*906afcb8SAndy Fiddaman#else
24*906afcb8SAndy Fiddaman#   ifdef _hdr_locale
25*906afcb8SAndy Fiddaman#	include <locale.h>
26*906afcb8SAndy Fiddaman#	ifndef LC_MESSAGES
27*906afcb8SAndy Fiddaman#	    define LC_MESSAGES  LC_ALL
28*906afcb8SAndy Fiddaman#	endif /* LC_MESSAGES */
29*906afcb8SAndy Fiddaman#   endif /* _hdr_locale */
30*906afcb8SAndy Fiddaman#endif /* _PACKAGE_ast */
31*906afcb8SAndy Fiddaman#ifdef _hdr_locale
32*906afcb8SAndy Fiddaman#   ifdef _lib_localeconv
33*906afcb8SAndy Fiddaman	static struct lconv *lp;
34*906afcb8SAndy Fiddaman#	define GETDECIMAL(x)  (((lp=localeconv()) && lp->decimal_point && *lp->decimal_point) ?  *lp->decimal_point : '.' )
35*906afcb8SAndy Fiddaman#   else
36*906afcb8SAndy Fiddaman#	define GETDECIMAL(x)	('.')
37*906afcb8SAndy Fiddaman#   endif /* _lib_localeconv */
38*906afcb8SAndy Fiddaman#else
39*906afcb8SAndy Fiddaman#   define GETDECIMAL(x)	('.')
40*906afcb8SAndy Fiddaman#endif /* _hdr_locale */
41*906afcb8SAndy Fiddaman
42*906afcb8SAndy Fiddaman#endif
43