mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-17 19:32:23 -07:00
Add extra cases for flush
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ _file_stream_proc :: proc(stream_data: rawptr, mode: io.Stream_Mode, p: []byte,
|
||||
case .Close:
|
||||
close(fd)
|
||||
case .Flush:
|
||||
when ODIN_OS == .Windows {
|
||||
when ODIN_OS == .Windows || ODIN_OS == .Darwin || ODIN_OS == .JS {
|
||||
flush(fd)
|
||||
} else {
|
||||
// TOOD(bill): other operating systems
|
||||
|
||||
Reference in New Issue
Block a user