Explorar o código

replace ODIN_OS string with enums

pvance %!s(int64=3) %!d(string=hai) anos
pai
achega
f213622982
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      vendor/stb/image/stb_image.odin

+ 3 - 3
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))