aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpvance <phillipvancejr@protonmail.com>2022-07-28 04:20:37 -0400
committerGitHub <noreply@github.com>2022-07-28 04:20:37 -0400
commitf213622982d6662fe75a9ec0a19bee99527eff15 (patch)
tree98dffb067d690c13545055879b7346c63836c9be
parent4aad835a6602ef95db3c4cc937c6637be0e7e34f (diff)
replace ODIN_OS string with enums
-rw-r--r--vendor/stb/image/stb_image.odin6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/stb/image/stb_image.odin b/vendor/stb/image/stb_image.odin
index 12f7aea9f..27f4e7201 100644
--- a/vendor/stb/image/stb_image.odin
+++ b/vendor/stb/image/stb_image.odin
@@ -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))