mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-24 08:27:53 +00:00
Replace ODIN_OS strings with enum values
This commit is contained in:
+3
-3
@@ -2,9 +2,9 @@ package stb_image
|
||||
|
||||
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/darwin/stb_image_resize.a" }
|
||||
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" }
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user