Simplify stb foreign imports
This commit is contained in:
1 parent
1511162b0a
commit
3d4a20918f
3 files changed
+6
-18
No files matched your search
+2
-6
@@ -18,12 +18,8 @@ when RESIZE_LIB != "" {
|
||||
}
|
||||
}
|
||||
|
||||
when ODIN_ARCH == .wasm32 || ODIN_ARCH == .wasm64p32 {
|
||||
foreign import lib "../lib/stb_image_resize_wasm.o"
|
||||
} else when RESIZE_LIB != "" {
|
||||
foreign import lib { RESIZE_LIB }
|
||||
} else {
|
||||
foreign import lib "system:stb_image_resize"
|
||||
foreign import stbi {
|
||||
RESIZE_LIB when RESIZE_LIB != "" else "system:stb_image_resize"
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in new issue
Block a user