makes raylib and stb_rect_pack free of libc

This commit is contained in:
Laytan Laats
2024-02-29 23:33:25 +01:00
parent 3263e54144
commit 6734a7096a
4 changed files with 35 additions and 12 deletions
+5 -2
View File
@@ -1,6 +1,6 @@
package raylib
import c "core:c/libc"
import c "core:c"
RAYGUI_SHARED :: #config(RAYGUI_SHARED, false)
@@ -240,7 +240,10 @@ SCROLLBAR_RIGHT_SIDE :: 1
@(default_calling_convention="c")
foreign lib {
@(link_name="raylib_version") version: cstring
// WASM does not have foreign variable declarations.
when ODIN_ARCH != .wasm32 && ODIN_ARCH != .wasm64p32 {
@(link_name="raylib_version") version: cstring
}
// Global gui state control functions
GuiEnable :: proc() --- // Enable gui controls (global state)