Add foreign imports for Darwin to vendor:stb

This commit is contained in:
Wes Hardee
2022-03-22 15:55:37 -05:00
parent 0446d9721b
commit f89ebce807
6 changed files with 6 additions and 0 deletions
+1
View File
@@ -4,6 +4,7 @@ import c "core:c/libc"
when ODIN_OS == .Windows { foreign import stbiw "../lib/stb_image_write.lib" }
when ODIN_OS == .Linux { foreign import stbiw "../lib/stb_image_write.a" }
when ODIN_OS == .Darwin { foreign import stbiw "../lib/stb_image_write.a" }
write_func :: proc "c" (ctx: rawptr, data: rawptr, size: c.int)