From 328818af974145adde54b37fa107300e2bd6ffcc Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Wed, 2 Jun 2021 14:56:43 +0200 Subject: [PATCH] LibC: Provide a dummy mbstate_t in wchar.h POSIX just says that mbstate_t should be an "object type other than an array type" that can hold the conversion state for converting between (multi-byte) characters and wide characters. Since no other information regarding the contents is given, this apparently means that we should add whatever we need once we start implementing that conversion. --- Userland/Libraries/LibC/wchar.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Userland/Libraries/LibC/wchar.h b/Userland/Libraries/LibC/wchar.h index 35b192f939..ef7b447531 100644 --- a/Userland/Libraries/LibC/wchar.h +++ b/Userland/Libraries/LibC/wchar.h @@ -18,6 +18,9 @@ __BEGIN_DECLS typedef __WINT_TYPE__ wint_t; typedef unsigned long int wctype_t; +typedef struct { +} mbstate_t; + size_t wcslen(const wchar_t*); wchar_t* wcscpy(wchar_t*, const wchar_t*); wchar_t* wcsncpy(wchar_t*, const wchar_t*, size_t);