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