From c1b7d9d93dc8e88693162c0d984a114371919fdd Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sun, 24 Jul 2016 20:00:34 +0200 Subject: Implement per-locale string functions strcasecmp_l, strcoll_l, strncasecmp_l, strxfrm_l, wcscasecmp_l, wcscoll_l, wcstrncasecmp_l, wcstrxfrm_l, strftime_l. Add missing CHEWOUT_FILES from previous patch. TODO: strfmon_l. Signed-off by: Corinna Vinschen --- newlib/libc/include/string.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'newlib/libc/include/string.h') diff --git a/newlib/libc/include/string.h b/newlib/libc/include/string.h index 56c7fc25b..549d51184 100644 --- a/newlib/libc/include/string.h +++ b/newlib/libc/include/string.h @@ -16,6 +16,11 @@ #define __need_NULL #include +#if __POSIX_VISIBLE >= 200809 || defined (_COMPILING_NEWLIB) +struct __locale_t; +typedef struct __locale_t *locale_t; +#endif + _BEGIN_STD_C _PTR _EXFUN(memchr,(const _PTR, int, size_t)); @@ -43,6 +48,14 @@ char *_EXFUN(strtok,(char *__restrict, const char *__restrict)); #endif size_t _EXFUN(strxfrm,(char *__restrict, const char *__restrict, size_t)); +#if __POSIX_VISIBLE >= 200809 +extern int strcasecmp_l (const char *, const char *, locale_t); +extern int strncasecmp_l (const char *, const char *, size_t, locale_t); +extern int strcoll_l (const char *, const char *, locale_t); +extern size_t strxfrm_l (char *__restrict, const char *__restrict, size_t, + locale_t); +#endif + #if __MISC_VISIBLE || __POSIX_VISIBLE char *_EXFUN(strtok_r,(char *__restrict, const char *__restrict, char **__restrict)); #endif -- cgit v1.2.3