Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AK: Address MSVC/Windows portability for logging #1605

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

compnerd
Copy link
Contributor

@compnerd compnerd commented Oct 2, 2024

STDERR_FILENO is pretty common but not part of the standard. On Windows, in order to get a file number, one must use _fileno to convert the FILE * to a file number. Adopt this pattern similar to the Android path which uses platform specific operations.

`STDERR_FILENO` is pretty common but not part of the standard. On
Windows, in order to get a file number, one must use `_fileno` to
convert the `FILE *` to a file number. Adopt this pattern similar
to the Android path which uses platform specific operations.
@compnerd
Copy link
Contributor Author

compnerd commented Oct 2, 2024

CC: @ADKaster

@ADKaster ADKaster merged commit 5a35ee0 into LadybirdBrowser:master Oct 2, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants