1*b30d1939SAndy Fiddaman/* : : generated from contrib/ast/src/cmd/ksh93/features/locale by iffe version 2012-07-17 : : */
2da2e3ebdSchin#ifndef _def_locale_ksh93
3da2e3ebdSchin#define _def_locale_ksh93	1
4da2e3ebdSchin#define _sys_types	1	/* #include <sys/types.h> ok */
5da2e3ebdSchin#define _hdr_locale	1	/* #include <locale.h> ok */
6da2e3ebdSchin#define _hdr_wchar	1	/* #include <wchar.h> ok */
7*b30d1939SAndy Fiddaman#define _hdr_wctype	1	/* #include <wctype.h> ok */
8da2e3ebdSchin#define _lib_localeconv	1	/* localeconv() in default lib(s) */
9da2e3ebdSchin#define _lib_wctype	1	/* wctype() in default lib(s) */
10da2e3ebdSchin#define _lib_iswctype	1	/* iswctype() in default lib(s) */
11da2e3ebdSchin#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 */
20da2e3ebdSchin#if _PACKAGE_ast
21da2e3ebdSchin#   undef  _hdr_locale
22da2e3ebdSchin#   define _hdr_locale 1
23da2e3ebdSchin#else
24da2e3ebdSchin#   ifdef _hdr_locale
25da2e3ebdSchin#	include <locale.h>
26da2e3ebdSchin#	ifndef LC_MESSAGES
27da2e3ebdSchin#	    define LC_MESSAGES  LC_ALL
28da2e3ebdSchin#	endif /* LC_MESSAGES */
29da2e3ebdSchin#   endif /* _hdr_locale */
30da2e3ebdSchin#endif /* _PACKAGE_ast */
31da2e3ebdSchin#ifdef _hdr_locale
32da2e3ebdSchin#   ifdef _lib_localeconv
33da2e3ebdSchin	static struct lconv *lp;
34da2e3ebdSchin#	define GETDECIMAL(x)  (((lp=localeconv()) && lp->decimal_point && *lp->decimal_point) ?  *lp->decimal_point : '.' )
35da2e3ebdSchin#   else
36da2e3ebdSchin#	define GETDECIMAL(x)	('.')
37da2e3ebdSchin#   endif /* _lib_localeconv */
38da2e3ebdSchin#else
39da2e3ebdSchin#   define GETDECIMAL(x)	('.')
40da2e3ebdSchin#endif /* _hdr_locale */
41da2e3ebdSchin
42da2e3ebdSchin#endif
43