1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:24:58 +00:00

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.
This commit is contained in:
Ali Mohammad Pur 2021-12-19 21:59:27 +03:30 committed by Ali Mohammad Pur
parent cb90856756
commit bd9a22e7e7
2 changed files with 7 additions and 0 deletions

View file

@ -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

View file

@ -17,6 +17,12 @@ static_assert(AssertSize<wchar_t, sizeof(u32)>());
extern "C" {
int fwide(FILE*, int mode)
{
// Nope Nope Nope.
return mode;
}
wint_t fgetwc(FILE* stream)
{
VERIFY(stream);