mirror of
https://github.com/odin-lang/Odin.git
synced 2026-03-01 14:18:19 +00:00
replace ODIN_OS string with enums
This commit is contained in:
6
vendor/stb/image/stb_image.odin
vendored
6
vendor/stb/image/stb_image.odin
vendored
@@ -4,9 +4,9 @@ import c "core:c/libc"
|
||||
|
||||
#assert(size_of(c.int) == size_of(b32))
|
||||
|
||||
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/darwin/stb_image.a" }
|
||||
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" }
|
||||
|
||||
#assert(size_of(b32) == size_of(c.int))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user