summaryrefslogtreecommitdiff
path: root/libgcompat
diff options
context:
space:
mode:
Diffstat (limited to 'libgcompat')
-rw-r--r--libgcompat/wchar.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libgcompat/wchar.c b/libgcompat/wchar.c
index 930cc7c..78f7e02 100644
--- a/libgcompat/wchar.c
+++ b/libgcompat/wchar.c
@@ -1,7 +1,7 @@
#include <assert.h> /* assert */
#include <stdarg.h> /* va_list, va_start, va_end */
#include <stddef.h> /* size_t */
-#include <wchar.h> /* wchar_t, *wprintf */
+#include <wchar.h> /* wchar_t, *wprintf, mbstate_t */
int __vswprintf_chk(wchar_t *s, size_t n, int flag, size_t slen,
const wchar_t *format, va_list ap);
@@ -135,3 +135,8 @@ double wcstod_l(const wchar_t *nptr, wchar_t **endptr, locale_t loc)
{
return wcstod(nptr, endptr);
}
+
+
+size_t __mbrlen(const char *restrict s, size_t n, mbstate_t *restrict st) {
+ return mbrlen(s, n, st);
+}