X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fctype%2Fwctrans.c;h=b1b1265481c7d2714365537575b2d8152d033d17;hb=91e1e29d6dd92c5e707f05dcc9b2a376b0d8dfa1;hp=739869d059e4aec9b2f805cdc95d5c703dd711ca;hpb=da1442c9a8c58f8ad85a1bd96007f60bc372d157;p=musl diff --git a/src/ctype/wctrans.c b/src/ctype/wctrans.c index 739869d0..b1b12654 100644 --- a/src/ctype/wctrans.c +++ b/src/ctype/wctrans.c @@ -1,5 +1,6 @@ #include #include +#include "libc.h" wctrans_t wctrans(const char *class) { @@ -14,3 +15,16 @@ wint_t towctrans(wint_t wc, wctrans_t trans) if (trans == (wctrans_t)2) return towlower(wc); return wc; } + +wctrans_t __wctrans_l(const char *s, locale_t l) +{ + return wctrans(s); +} + +wint_t __towctrans_l(wint_t c, wctrans_t t, locale_t l) +{ + return towctrans(c, t); +} + +weak_alias(__wctrans_l, wctrans_l); +weak_alias(__towctrans_l, towctrans_l);