Add stubs for flush on platforms that didn't have it

This commit is contained in:
gingerBill
2024-08-04 15:07:24 +01:00
parent acb1ebddf6
commit bf948ab8ae
8 changed files with 38 additions and 6 deletions
+5
View File
@@ -53,3 +53,8 @@ write :: proc(fd: Handle, data: []u8) -> (int, Error) {
seek :: proc(fd: Handle, offset: i64, whence: int) -> (i64, Error) {
return (i64) (0), (Error) (1)
}
flush :: proc(fd: Handle) -> Error {
// do nothing
return nil
}