diff --git a/core/os/os2/file.odin b/core/os/os2/file.odin index 98cfc0815..236423163 100644 --- a/core/os/os2/file.odin +++ b/core/os/os2/file.odin @@ -45,11 +45,9 @@ O_TRUNC :: File_Flags{.Trunc} O_SPARSE :: File_Flags{.Sparse} O_CLOEXEC :: File_Flags{.Close_On_Exec} - -stdin: ^File = &_stdin -stdout: ^File = &_stdout -stderr: ^File = &_stderr - +stdin: ^File = nil // OS-Specific +stdout: ^File = nil // OS-Specific +stderr: ^File = nil // OS-Specific @(require_results) create :: proc(name: string) -> (^File, Error) { diff --git a/core/os/os2/file_linux.odin b/core/os/os2/file_linux.odin index 062c4aa0a..8e7db9751 100644 --- a/core/os/os2/file_linux.odin +++ b/core/os/os2/file_linux.odin @@ -49,6 +49,10 @@ _standard_stream_init :: proc() { _stdin.stream.data = &_stdin _stdout.stream.data = &_stdout _stderr.stream.data = &_stderr + + stdin = &_stdin + stdout = &_stdout + stderr = &_stderr } _file_allocator :: proc() -> runtime.Allocator {