Clean-up libc usage
This commit is contained in:
1 parent
634fa7aa30
commit
26d00925cc
8 files changed
+15
-7
No files matched your search
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