mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:27:45 +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:
parent
abc98dea09
commit
a8f0e489a4
7 changed files with 13 additions and 13 deletions
|
@ -241,7 +241,7 @@ static RefPtr<File> stdin_file;
|
|||
static RefPtr<File> stdout_file;
|
||||
static RefPtr<File> stderr_file;
|
||||
|
||||
NonnullRefPtr<File> File::stdin()
|
||||
NonnullRefPtr<File> File::standard_input()
|
||||
{
|
||||
if (!stdin_file) {
|
||||
stdin_file = File::construct();
|
||||
|
@ -250,7 +250,7 @@ NonnullRefPtr<File> File::stdin()
|
|||
return *stdin_file;
|
||||
}
|
||||
|
||||
NonnullRefPtr<File> File::stdout()
|
||||
NonnullRefPtr<File> File::standard_output()
|
||||
{
|
||||
if (!stdout_file) {
|
||||
stdout_file = File::construct();
|
||||
|
@ -259,7 +259,7 @@ NonnullRefPtr<File> File::stdout()
|
|||
return *stdout_file;
|
||||
}
|
||||
|
||||
NonnullRefPtr<File> File::stderr()
|
||||
NonnullRefPtr<File> File::standard_error()
|
||||
{
|
||||
if (!stderr_file) {
|
||||
stderr_file = File::construct();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue