summaryrefslogtreecommitdiff
path: root/libc/misc
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc')
-rw-r--r--libc/misc/regex/regex.c2
-rw-r--r--libc/misc/wchar/wchar.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/libc/misc/regex/regex.c b/libc/misc/regex/regex.c
index 5220ba57c..40958ff5c 100644
--- a/libc/misc/regex/regex.c
+++ b/libc/misc/regex/regex.c
@@ -38,6 +38,8 @@
#define iswctype __iswctype
#define iswlower __iswlower
#define iswalnum __iswalnum
+#define towlower __towlower
+#define mbsinit __mbsinit
#include <wchar.h>
#include <wctype.h>
diff --git a/libc/misc/wchar/wchar.c b/libc/misc/wchar/wchar.c
index 36937cd5d..925865d1a 100644
--- a/libc/misc/wchar/wchar.c
+++ b/libc/misc/wchar/wchar.c
@@ -260,10 +260,11 @@ int wctob(wint_t c)
/**********************************************************************/
#ifdef L_mbsinit
-int mbsinit(const mbstate_t *ps)
+int attribute_hidden __mbsinit(const mbstate_t *ps)
{
return !ps || !ps->__mask;
}
+strong_alias(__mbsinit,mbsinit)
#endif
/**********************************************************************/