diff options
author | Tim Schumacher <timschumi@gmx.de> | 2021-05-27 12:47:44 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-05-30 14:56:50 +0100 |
commit | d364abe4d5ebd417757783474e88a1b154c3e0d6 (patch) | |
tree | 2459b3f8bdff4a93e2a8ba63e7d040271dda2b3d /Userland/Libraries/LibC/wchar.h | |
parent | ccef5fe23464a8048e5bb66a4bbbad34aa7c38bd (diff) | |
download | serenity-d364abe4d5ebd417757783474e88a1b154c3e0d6.zip |
LibC: Stub out btowc
wint_t is also not supposed to be defined by sys/types.h, but should
be defined in wchar.h instead. Since we require it for our definition of
btowc, let's move it to the correct place.
Diffstat (limited to 'Userland/Libraries/LibC/wchar.h')
-rw-r--r-- | Userland/Libraries/LibC/wchar.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibC/wchar.h b/Userland/Libraries/LibC/wchar.h index 6eeb8e42e6..551b8b2300 100644 --- a/Userland/Libraries/LibC/wchar.h +++ b/Userland/Libraries/LibC/wchar.h @@ -15,6 +15,8 @@ __BEGIN_DECLS # define WEOF (0xffffffffu) #endif +typedef __WINT_TYPE__ wint_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); @@ -27,5 +29,6 @@ wchar_t* wcsncat(wchar_t*, const wchar_t*, size_t); wchar_t* wcstok(wchar_t*, const wchar_t*, wchar_t**); long wcstol(const wchar_t*, wchar_t**, int); long long wcstoll(const wchar_t*, wchar_t**, int); +wint_t btowc(int c); __END_DECLS |