xref: /titanic_41/usr/src/lib/libshell/sparcv9/src/cmd/ksh93/FEATURE/locale (revision 3e14f97f673e8a630f076077de35afdd43dc1587)
1/* : : generated from /home/gisburn/ksh93/ast_ksh_20100309/build_sparc_64bit/src/cmd/ksh93/features/locale by iffe version 2009-12-04 : : */
2#ifndef _def_locale_ksh93
3#define _def_locale_ksh93	1
4#define _sys_types	1	/* #include <sys/types.h> ok */
5#define _LIB_dll	1	/* /home/gisburn/ksh93/ast_ksh_20100309/build_sparc_64bit/arch/sol11.sun4/lib/libdll.a is a library */
6#define _LIB_ast	1	/* /home/gisburn/ksh93/ast_ksh_20100309/build_sparc_64bit/arch/sol11.sun4/lib/libast.a is a library */
7#define _LIB_m	1	/* -lm is a library */
8#define _LIB_cmd	1	/* /home/gisburn/ksh93/ast_ksh_20100309/build_sparc_64bit/arch/sol11.sun4/lib/libcmd.a is a library */
9#define _LIB_md	1	/* -lmd is a library */
10#define _LIB_nsl	1	/* -lnsl is a library */
11#define _hdr_locale	1	/* #include <locale.h> ok */
12#define _hdr_wchar	1	/* #include <wchar.h> ok */
13#define _lib_localeconv	1	/* localeconv() in default lib(s) */
14#define _lib_wctype	1	/* wctype() in default lib(s) */
15#define _lib_iswctype	1	/* iswctype() in default lib(s) */
16#define _lib_iswblank	1	/* iswblank() in default lib(s) */
17#if _PACKAGE_ast
18#   undef  _hdr_locale
19#   define _hdr_locale 1
20#else
21#   ifdef _hdr_locale
22#	include <locale.h>
23#	ifndef LC_MESSAGES
24#	    define LC_MESSAGES  LC_ALL
25#	endif /* LC_MESSAGES */
26#   endif /* _hdr_locale */
27#endif /* _PACKAGE_ast */
28#ifdef _hdr_locale
29#   ifdef _lib_localeconv
30	static struct lconv *lp;
31#	define GETDECIMAL(x)  (((lp=localeconv()) && lp->decimal_point && *lp->decimal_point) ?  *lp->decimal_point : '.' )
32#   else
33#	define GETDECIMAL(x)	('.')
34#   endif /* _lib_localeconv */
35#else
36#   define GETDECIMAL(x)	('.')
37#endif /* _hdr_locale */
38
39#endif
40