mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
LibCore: Rename identifiers that can clash with libc macros (#4127)
POSIX allows the default streams (stdin, stdout and stderr) to be macros, which means that on such systems (musl libc is one) building Lagom will fail due to the File::std*() names. Also fix any files that use these identifiers.
This commit is contained in:
committed by
GitHub
parent
abc98dea09
commit
a8f0e489a4
@@ -128,14 +128,14 @@ public:
|
||||
return Buffered<OutputFileStream> { file_result.value() };
|
||||
}
|
||||
|
||||
static OutputFileStream stdout()
|
||||
static OutputFileStream standard_output()
|
||||
{
|
||||
return OutputFileStream { Core::File::stdout() };
|
||||
return OutputFileStream { Core::File::standard_output() };
|
||||
}
|
||||
|
||||
static Buffered<OutputFileStream> stdout_buffered()
|
||||
{
|
||||
return Buffered<OutputFileStream> { Core::File::stdout() };
|
||||
return Buffered<OutputFileStream> { Core::File::standard_output() };
|
||||
}
|
||||
|
||||
size_t write(ReadonlyBytes bytes) override
|
||||
|
||||
Reference in New Issue
Block a user