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