Fix darwin libs for vendor stbi

This commit is contained in:
ray.garner
2022-09-18 21:11:07 +09:00
committed by sumofat
parent 729ffeee09
commit d6f84887ff
3 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ import c "core:c/libc"
when ODIN_OS == .Windows { foreign import stbi "../lib/stb_image.lib" }
when ODIN_OS == .Linux { foreign import stbi "../lib/stb_image.a" }
when ODIN_OS == .Darwin { foreign import stbi "../lib/stb_image.a" }
when ODIN_OS == .Darwin { foreign import stbi "../lib/darwin/stb_image.a" }
#assert(size_of(b32) == size_of(c.int))

View File

@@ -4,7 +4,7 @@ import c "core:c/libc"
when ODIN_OS == .Windows { foreign import lib "../lib/stb_image_resize.lib" }
when ODIN_OS == .Linux { foreign import lib "../lib/stb_image_resize.a" }
when ODIN_OS == .Darwin { foreign import lib "../lib/stb_image_resize.a" }
when ODIN_OS == .Darwin { foreign import lib "../lib/darwin/stb_image_resize.a" }
//////////////////////////////////////////////////////////////////////////////
//

View File

@@ -4,7 +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" }
when ODIN_OS == .Darwin { foreign import stbiw "../lib/darwin/stb_image_write.a" }
write_func :: proc "c" (ctx: rawptr, data: rawptr, size: c.int)