diff options
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/include/langinfo.h | 3 | ||||
-rw-r--r-- | newlib/libc/locale/nl_langinfo.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/newlib/libc/include/langinfo.h b/newlib/libc/include/langinfo.h index 33ae8d0a4..c0c31b33d 100644 --- a/newlib/libc/include/langinfo.h +++ b/newlib/libc/include/langinfo.h @@ -133,6 +133,9 @@ typedef int nl_item; #define _NL_CTYPE_EXTRA_MAP_13 82 #define _NL_CTYPE_EXTRA_MAP_14 83 +#define _NL_TIME_DATE_FMT 84 +#define _DATE_FMT _NL_TIME_DATE_FMT + __BEGIN_DECLS char *nl_langinfo(nl_item); __END_DECLS diff --git a/newlib/libc/locale/nl_langinfo.c b/newlib/libc/locale/nl_langinfo.c index 2f47c8735..14cd07a5e 100644 --- a/newlib/libc/locale/nl_langinfo.c +++ b/newlib/libc/locale/nl_langinfo.c @@ -189,6 +189,9 @@ _DEFUN(nl_langinfo, (item), case ALT_DIGITS: ret = (char*) __get_current_time_locale()->alt_digits; break; + case _DATE_FMT: /* GNU extension */ + ret = (char*) __get_current_time_locale()->date_fmt; + break; case RADIXCHAR: ret = (char*) __get_current_numeric_locale()->decimal_point; break; |