mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 16:49:54 +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
Notes:
sideshowbarker
2024-07-19 00:40:02 +09:00
Author: https://github.com/ericonr
Commit: a8f0e489a4
Pull-request: https://github.com/SerenityOS/serenity/pull/4127
7 changed files with 13 additions and 13 deletions
|
@ -58,9 +58,9 @@ public:
|
|||
};
|
||||
bool open(int fd, IODevice::OpenMode, ShouldCloseFileDescriptor);
|
||||
|
||||
static NonnullRefPtr<File> stdin();
|
||||
static NonnullRefPtr<File> stdout();
|
||||
static NonnullRefPtr<File> stderr();
|
||||
static NonnullRefPtr<File> standard_input();
|
||||
static NonnullRefPtr<File> standard_output();
|
||||
static NonnullRefPtr<File> standard_error();
|
||||
|
||||
private:
|
||||
File(Object* parent = nullptr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue