From cf5ec2587364f195b1e6562d84ddb4bc75e706a4 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 4 Aug 2024 13:18:51 +0100 Subject: [PATCH] Add extra cases for `flush` --- core/os/stream.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/os/stream.odin b/core/os/stream.odin index 7ec0e29a6..26bfee91d 100644 --- a/core/os/stream.odin +++ b/core/os/stream.odin @@ -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