summaryrefslogtreecommitdiffstats
path: root/newlib/libc/locale/timelocal.h
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/locale/timelocal.h')
-rw-r--r--newlib/libc/locale/timelocal.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/newlib/libc/locale/timelocal.h b/newlib/libc/locale/timelocal.h
index 80f72b66e..a0c1ef7ef 100644
--- a/newlib/libc/locale/timelocal.h
+++ b/newlib/libc/locale/timelocal.h
@@ -29,7 +29,9 @@
#ifndef _TIMELOCAL_H_
#define _TIMELOCAL_H_
+#include <_ansi.h>
#include <sys/cdefs.h>
+#include <wchar.h>
__BEGIN_DECLS
@@ -47,7 +49,7 @@ struct lc_time_T {
const char *c_fmt;
const char *am_pm[2];
const char *date_fmt;
- const char *alt_month[12];
+ const char *alt_month[12]; /* unused */
const char *md_order;
const char *ampm_fmt;
const char *era;
@@ -55,6 +57,24 @@ struct lc_time_T {
const char *era_d_t_fmt;
const char *era_t_fmt;
const char *alt_digits;
+#ifdef __HAVE_LOCALE_INFO_EXTENDED__
+ const char *codeset; /* codeset for mbtowc conversion */
+ const wchar_t *wmon[12];
+ const wchar_t *wmonth[12];
+ const wchar_t *wwday[7];
+ const wchar_t *wweekday[7];
+ const wchar_t *wX_fmt;
+ const wchar_t *wx_fmt;
+ const wchar_t *wc_fmt;
+ const wchar_t *wam_pm[2];
+ const wchar_t *wdate_fmt;
+ const wchar_t *wampm_fmt;
+ const wchar_t *wera;
+ const wchar_t *wera_d_fmt;
+ const wchar_t *wera_d_t_fmt;
+ const wchar_t *wera_t_fmt;
+ const wchar_t *walt_digits;
+#endif
};
struct lc_time_T *__get_current_time_locale(void);