replace ODIN_OS string with enums

This commit is contained in:
pvance
2022-07-28 04:20:37 -04:00
committed by GitHub
parent 4aad835a66
commit f213622982

View File

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