From 50660812be5588036a14fc85af16bccef68fac02 Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Sun, 24 Aug 2003 03:49:13 +0000 Subject: Fix a few bugs in the new extended locale functions. Move stub gettext functions to a stub libintl to make switching in gnu gettext easier. Also add a few gnu-isms. Change to using hidden names with global weak aliases for the extended locale functions, as expected by libstd++. Slightly rework the locale data generation stuff to allow pregenerated locale data to be used with buildroot. --- libc/misc/time/time.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libc/misc/time/time.c') diff --git a/libc/misc/time/time.c b/libc/misc/time/time.c index 0ae91f69a..9bc8bc4cf 100644 --- a/libc/misc/time/time.c +++ b/libc/misc/time/time.c @@ -652,7 +652,7 @@ size_t strftime(char *__restrict s, size_t maxsize, const char *__restrict format, const struct tm *__restrict timeptr) { - return strftime_l(s, maxsize, format, timeptr, __UCLIBC_CURLOCALE); + return __strftime_l(s, maxsize, format, timeptr, __UCLIBC_CURLOCALE); } #else /* defined(__UCLIBC_HAS_XLOCALE__) && !defined(__UCLIBC_DO_XLOCALE) */ @@ -1106,6 +1106,8 @@ size_t __XL(strftime)(char *__restrict s, size_t maxsize, goto LOOP; } +__XL_ALIAS(strftime) + #endif /* defined(__UCLIBC_HAS_XLOCALE__) && !defined(__UCLIBC_DO_XLOCALE) */ #endif @@ -1127,7 +1129,7 @@ size_t __XL(strftime)(char *__restrict s, size_t maxsize, char *strptime(const char *__restrict buf, const char *__restrict format, struct tm *__restrict tm) { - return strptime_l(buf, format, tm, __UCLIBC_CURLOCALE); + return __strptime_l(buf, format, tm, __UCLIBC_CURLOCALE); } #else /* defined(__UCLIBC_HAS_XLOCALE__) && !defined(__UCLIBC_DO_XLOCALE) */ @@ -1482,6 +1484,8 @@ char *__XL(strptime)(const char *__restrict buf, const char *__restrict format, return NULL; } +__XL_ALIAS(strptime) + #endif /* defined(__UCLIBC_HAS_XLOCALE__) && !defined(__UCLIBC_DO_XLOCALE) */ #endif -- cgit v1.2.3