Signed-off-by: Waldemar Kozaczuk <[email protected]>
---
 Makefile                |  3 +--
 libc/locale/wcsxfrm.c   | 12 ------------
 libc/locale/wcsxfrm_l.c | 10 ----------
 3 files changed, 1 insertion(+), 24 deletions(-)
 delete mode 100644 libc/locale/wcsxfrm.c
 delete mode 100644 libc/locale/wcsxfrm_l.c

diff --git a/Makefile b/Makefile
index 168a6bdd..358b758a 100644
--- a/Makefile
+++ b/Makefile
@@ -1063,8 +1063,7 @@ libc += locale/uselocale.o
 libc += locale/wcscoll.o
 libc += locale/wcscoll_l.o
 libc += locale/wcsftime_l.o
-libc += locale/wcsxfrm.o
-libc += locale/wcsxfrm_l.o
+musl += locale/wcsxfrm.o
 musl += locale/wctrans_l.o
 musl += locale/wctype_l.o
 
diff --git a/libc/locale/wcsxfrm.c b/libc/locale/wcsxfrm.c
deleted file mode 100644
index bfa01b5b..00000000
--- a/libc/locale/wcsxfrm.c
+++ /dev/null
@@ -1,12 +0,0 @@
-#include <wchar.h>
-
-/* collate only by code points */
-size_t wcsxfrm(wchar_t *restrict dest, const wchar_t *restrict src, size_t n)
-{
-       size_t l = wcslen(src);
-       if (l >= n) {
-               wmemcpy(dest, src, n-1);
-               dest[n-1] = 0;
-       } else wcscpy(dest, src);
-       return l;
-}
diff --git a/libc/locale/wcsxfrm_l.c b/libc/locale/wcsxfrm_l.c
deleted file mode 100644
index 2db6c065..00000000
--- a/libc/locale/wcsxfrm_l.c
+++ /dev/null
@@ -1,10 +0,0 @@
-#include <wchar.h>
-#include "libc.h"
-
-size_t __wcsxfrm_l(wchar_t *restrict dest, const wchar_t *restrict src, size_t 
n, locale_t locale)
-{
-       return wcsxfrm(dest, src, n);
-}
-
-/* OSv local: a libstdc++ build against glibc wants the __ version */
-weak_alias(__wcsxfrm_l, wcsxfrm_l);
-- 
2.26.2

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osv-dev/20200815042719.51117-5-jwkozaczuk%40gmail.com.

Reply via email to