diff options
Diffstat (limited to 'libc/string')
-rw-r--r-- | libc/string/strcasecmp.c | 3 | ||||
-rw-r--r-- | libc/string/strncasecmp.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/libc/string/strcasecmp.c b/libc/string/strcasecmp.c index 54ce7f8c7..8a7836d82 100644 --- a/libc/string/strcasecmp.c +++ b/libc/string/strcasecmp.c @@ -11,11 +11,12 @@ #include <locale.h> #ifdef WANT_WIDE -# include <wchar.h> # define strcasecmp wcscasecmp # define strcasecmp_l wcscasecmp_l libc_hidden_proto(wcscasecmp) +# if defined(__USE_GNU) && defined(__UCLIBC_HAS_XLOCALE__) libc_hidden_proto(wcscasecmp_l) +# endif # ifdef __UCLIBC_DO_XLOCALE libc_hidden_proto(towlower_l) # define TOLOWER(C) towlower_l((C), locale_arg) diff --git a/libc/string/strncasecmp.c b/libc/string/strncasecmp.c index fea9006cb..ab84be7ba 100644 --- a/libc/string/strncasecmp.c +++ b/libc/string/strncasecmp.c @@ -14,7 +14,9 @@ # define strncasecmp wcsncasecmp # define strncasecmp_l wcsncasecmp_l libc_hidden_proto(wcsncasecmp) +# if defined(__USE_GNU) && defined(__UCLIBC_HAS_XLOCALE__) libc_hidden_proto(wcsncasecmp_l) +# endif # ifdef __UCLIBC_DO_XLOCALE libc_hidden_proto(towlower_l) # define TOLOWER(C) towlower_l((C), locale_arg) |