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