Merge pull request #2059 from sumofat/pr_fix_stbi_darwin

Pr fix darwin libdir 2
This commit is contained in:
Jeroen van Rijn
2022-09-18 14:38:35 +02:00
committed by GitHub
3 changed files with 3 additions and 3 deletions
+1 -1
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))
+1 -1
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" }
//////////////////////////////////////////////////////////////////////////////
//
+1 -1
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)