From bd9a22e7e7d2d374ffdb38c7728f7f44e7e9a3dd Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Sun, 19 Dec 2021 21:59:27 +0330 Subject: [PATCH] LibC: Stub out fwide() This is a mess, and I'd rather not perform checks on every single stdio operation, so just make it a noop. --- Userland/Libraries/LibC/wchar.h | 1 + Userland/Libraries/LibC/wstdio.cpp | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/Userland/Libraries/LibC/wchar.h b/Userland/Libraries/LibC/wchar.h index 5531380a29..6b2d2f767a 100644 --- a/Userland/Libraries/LibC/wchar.h +++ b/Userland/Libraries/LibC/wchar.h @@ -77,5 +77,6 @@ wint_t getwchar(void); wint_t fputwc(wchar_t wc, FILE* stream); wint_t putwc(wchar_t wc, FILE* stream); wint_t putwchar(wchar_t wc); +int fwide(FILE* stream, int mode); __END_DECLS diff --git a/Userland/Libraries/LibC/wstdio.cpp b/Userland/Libraries/LibC/wstdio.cpp index 36e61f1a03..b4f4df488a 100644 --- a/Userland/Libraries/LibC/wstdio.cpp +++ b/Userland/Libraries/LibC/wstdio.cpp @@ -17,6 +17,12 @@ static_assert(AssertSize()); extern "C" { +int fwide(FILE*, int mode) +{ + // Nope Nope Nope. + return mode; +} + wint_t fgetwc(FILE* stream) { VERIFY(stream);