Browse Source

Merge pull request #2059 from sumofat/pr_fix_stbi_darwin

Pr fix darwin libdir 2
Jeroen van Rijn 2 years ago
parent
commit
6157af56e9

+ 1 - 1
vendor/stb/image/stb_image.odin

@@ -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
vendor/stb/image/stb_image_resize.odin

@@ -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
vendor/stb/image/stb_image_write.odin

@@ -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)