fix compilation for new os package

This commit is contained in:
2026-05-13 19:58:15 +02:00
parent e17be59712
commit c85faf16b4
2 changed files with 6 additions and 8 deletions
+3 -5
View File
@@ -1,11 +1,9 @@
package tinyvg
import "core:os/os2"
import "core:os"
import "core:fmt"
import "core:io"
import "core:slice"
import "core:bytes"
import "core:debug/trace"
import "base:runtime"
@@ -252,11 +250,11 @@ TvgError :: enum {
Error :: union {
TvgError,
io.Error,
os2.Error,
os.Error,
}
load_from_file :: proc(filename: string, allocator := context.allocator) -> (tvg: ^Tvg, err: Error) {
data := os2.read_entire_file(filename, allocator) or_return
data := os.read_entire_file(filename, allocator) or_return
defer delete(data, allocator)
return load_from_bytes(data, allocator)