Skip to content

Commit

Permalink
Replacing STDOUT/STDERR_FILENO with ::fileno() to work on both Linux …
Browse files Browse the repository at this point in the history
…and Windows
  • Loading branch information
VeithMetro committed Oct 2, 2023
1 parent 3f7020c commit 9a0a11d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/messaging/ConsoleStreamRedirect.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ namespace WPEFramework {

private:
ConsoleStandardOut()
: Core::TextStreamRedirectType<StandardOut>(STDOUT_FILENO) {
: Core::TextStreamRedirectType<StandardOut>(::fileno(stdout)) {
}

public:
Expand All @@ -84,7 +84,7 @@ namespace WPEFramework {

private:
ConsoleStandardError()
: Core::TextStreamRedirectType<StandardError>(STDERR_FILENO) {
: Core::TextStreamRedirectType<StandardError>(::fileno(stderr)) {
}

public:
Expand Down

0 comments on commit 9a0a11d

Please sign in to comment.