aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-08-04 13:18:51 +0100
committergingerBill <bill@gingerbill.org>2024-08-04 13:18:51 +0100
commitcf5ec2587364f195b1e6562d84ddb4bc75e706a4 (patch)
tree23035b6238ed4255f8673733739e7e14978b4fea
parent7663a2036aa121900b6e13c60e1dd7f5297f4f5e (diff)
Add extra cases for `flush`
-rw-r--r--core/os/stream.odin2
1 files changed, 1 insertions, 1 deletions
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