Clean-up libc usage

This commit is contained in:
gingerBill
2024-09-22 13:20:45 +01:00
parent 634fa7aa30
commit 26d00925cc
8 changed files with 15 additions and 7 deletions
+1 -2
View File
@@ -1,6 +1,6 @@
package stb_image
import c "core:c/libc"
import "core:c"
@(private)
LIB :: (
@@ -20,7 +20,6 @@ when LIB != "" {
when ODIN_ARCH == .wasm32 || ODIN_ARCH == .wasm64p32 {
foreign import stbi "../lib/stb_image_wasm.o"
foreign import stbi { LIB }
} else when LIB != "" {
foreign import stbi { LIB }
} else {
+1 -1
View File
@@ -1,6 +1,6 @@
package stb_image
import c "core:c/libc"
import "core:c"
@(private)
RESIZE_LIB :: (
+1 -1
View File
@@ -1,6 +1,6 @@
package stb_image
import c "core:c/libc"
import "core:c"
@(private)
WRITE_LIB :: (
+1 -1
View File
@@ -7,7 +7,7 @@ The `js_wasm32` target assumes that the WASM output will be ran within a web bro
## Example for `js_wasm32`
```html
<!-- Copy `vendor:wasm/js/odin.js` into your web server -->
<!-- Copy `core:sys/wasm/js/odin.js` into your web server -->
<script type="text/javascript" src="odin.js"></script>
<script type="text/javascript">
odin.runWasm(pathToWasm, consolePreElement);