|
@@ -9,19 +9,16 @@
|
|
|
|
|
|
#ifdef WANT_WIDE
|
|
|
# define Wstrlcpy __wcslcpy
|
|
|
+# define Wstrxfrm wcsxfrm
|
|
|
#else
|
|
|
# define Wstrlcpy strlcpy
|
|
|
+# define Wstrxfrm strxfrm
|
|
|
#endif
|
|
|
|
|
|
|
|
|
* Copy at most n-1 chars from src to dst and nul-terminate dst.
|
|
|
* Returns strlen(src), so truncation occurred if the return value is >= n. */
|
|
|
|
|
|
-#ifdef WANT_WIDE
|
|
|
-size_t Wstrlcpy(register Wchar *__restrict dst,
|
|
|
- register const Wchar *__restrict src,
|
|
|
- size_t n) attribute_hidden;
|
|
|
-#endif
|
|
|
size_t Wstrlcpy(register Wchar *__restrict dst,
|
|
|
register const Wchar *__restrict src,
|
|
|
size_t n)
|
|
@@ -45,17 +42,10 @@ size_t Wstrlcpy(register Wchar *__restrict dst,
|
|
|
|
|
|
return src - src0;
|
|
|
}
|
|
|
-#ifdef WANT_WIDE
|
|
|
-
|
|
|
-#ifndef __UCLIBC_HAS_LOCALE__
|
|
|
-strong_alias(__wcslcpy,wcsxfrm)
|
|
|
-#endif
|
|
|
-
|
|
|
-#else
|
|
|
-
|
|
|
+#ifndef WANT_WIDE
|
|
|
libc_hidden_def(strlcpy)
|
|
|
-#ifndef __UCLIBC_HAS_LOCALE__
|
|
|
-strong_alias(strlcpy,strxfrm)
|
|
|
#endif
|
|
|
|
|
|
+#ifndef __UCLIBC_HAS_LOCALE__
|
|
|
+strong_alias(Wstrlcpy,Wstrxfrm)
|
|
|
#endif
|