mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
Clean-up libc usage
This commit is contained in:
Vendored
+1
-2
@@ -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
@@ -1,6 +1,6 @@
|
||||
package stb_image
|
||||
|
||||
import c "core:c/libc"
|
||||
import "core:c"
|
||||
|
||||
@(private)
|
||||
RESIZE_LIB :: (
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package stb_image
|
||||
|
||||
import c "core:c/libc"
|
||||
import "core:c"
|
||||
|
||||
@(private)
|
||||
WRITE_LIB :: (
|
||||
|
||||
Vendored
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user