4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-22 00:38:06 +08:00

Get rid of LCID, reformat type definitions in setlocale.h

Definition of LCID results in build problems on 32 bit Cygwin

Signed-off by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2016-07-25 12:30:25 +02:00
parent 7156bf842e
commit ac7f1d5e93

View File

@ -44,18 +44,18 @@ __BEGIN_DECLS
#define _LC_LAST 7 #define _LC_LAST 7
#ifdef __CYGWIN__ #ifdef __CYGWIN__
typedef __uint32_t LCID;
struct lc_collate_T struct lc_collate_T
{ {
LCID lcid; __uint32_t lcid;
int (*mbtowc) (struct _reent *, wchar_t *, const char *, size_t, mbstate_t *); int (*mbtowc) (struct _reent *, wchar_t *, const char *, size_t,
mbstate_t *);
char codeset[ENCODING_LEN + 1]; char codeset[ENCODING_LEN + 1];
}; };
extern const struct lc_collate_T _C_collate_locale; extern const struct lc_collate_T _C_collate_locale;
#endif #endif
struct lc_ctype_T { struct lc_ctype_T
{
const char *codeset; /* codeset for mbtowc conversion */ const char *codeset; /* codeset for mbtowc conversion */
const char *mb_cur_max; const char *mb_cur_max;
#ifdef __HAVE_LOCALE_INFO_EXTENDED__ #ifdef __HAVE_LOCALE_INFO_EXTENDED__
@ -65,7 +65,8 @@ struct lc_ctype_T {
}; };
extern const struct lc_ctype_T _C_ctype_locale; extern const struct lc_ctype_T _C_ctype_locale;
struct lc_monetary_T { struct lc_monetary_T
{
const char *int_curr_symbol; const char *int_curr_symbol;
const char *currency_symbol; const char *currency_symbol;
const char *mon_decimal_point; const char *mon_decimal_point;
@ -99,7 +100,8 @@ struct lc_monetary_T {
}; };
extern const struct lc_monetary_T _C_monetary_locale; extern const struct lc_monetary_T _C_monetary_locale;
struct lc_numeric_T { struct lc_numeric_T
{
const char *decimal_point; const char *decimal_point;
const char *thousands_sep; const char *thousands_sep;
const char *grouping; const char *grouping;
@ -111,7 +113,8 @@ struct lc_numeric_T {
}; };
extern const struct lc_numeric_T _C_numeric_locale; extern const struct lc_numeric_T _C_numeric_locale;
struct lc_time_T { struct lc_time_T
{
const char *mon[12]; const char *mon[12];
const char *month[12]; const char *month[12];
const char *wday[7]; const char *wday[7];
@ -150,7 +153,8 @@ struct lc_time_T {
}; };
extern const struct lc_time_T _C_time_locale; extern const struct lc_time_T _C_time_locale;
struct lc_messages_T { struct lc_messages_T
{
const char *yesexpr; const char *yesexpr;
const char *noexpr; const char *noexpr;
const char *yesstr; const char *yesstr;