Browse Source

Switch from now removed context.stdout/stderr to os.stdout/stderr

Mikkel Hjortshoej 5 years ago
parent
commit
a6c8dcdd21
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/log/file_console_logger.odin

+ 1 - 1
core/log/file_console_logger.odin

@@ -64,7 +64,7 @@ file_console_logger_proc :: proc(logger_data: rawptr, level: Level, text: string
     data := cast(^File_Console_Logger_Data)logger_data;
     data := cast(^File_Console_Logger_Data)logger_data;
     h : os.Handle;
     h : os.Handle;
     if(data.file_handle != os.INVALID_HANDLE) do h = data.file_handle;
     if(data.file_handle != os.INVALID_HANDLE) do h = data.file_handle;
-    else                                      do h = context.stdout if level <= Level.Error else context.stderr;
+    else                                      do h = os.stdout if level <= Level.Error else os.stderr;
     backing: [1024]byte; //NOTE(Hoej): 1024 might be too much for a header backing, unless somebody has really long paths.
     backing: [1024]byte; //NOTE(Hoej): 1024 might be too much for a header backing, unless somebody has really long paths.
     buf := strings.builder_from_slice(backing[:]);
     buf := strings.builder_from_slice(backing[:]);