diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2024-09-29 13:35:11 +0200 |
|---|---|---|
| committer | laytan <laytanlaats@hotmail.com> | 2024-09-29 11:45:57 +0200 |
| commit | 152479052e75419df943422beccd3904f080e891 (patch) | |
| tree | 267c311c3c9dec48bbe1f2d10fc438c43450278c /vendor/stb | |
| parent | daa3bb9a3beb8a4551ef4c8bdeefcaaaf11ed30d (diff) | |
va_list fixes for raylib & stb sprintf
Diffstat (limited to 'vendor/stb')
| -rw-r--r-- | vendor/stb/lib/darwin/stb_sprintf.a | bin | 0 -> 47224 bytes | |||
| -rw-r--r-- | vendor/stb/lib/stb_sprintf.lib | bin | 0 -> 25212 bytes | |||
| -rw-r--r-- | vendor/stb/sprintf/stb_sprintf.odin | 2 | ||||
| -rw-r--r-- | vendor/stb/src/build.bat | 3 |
4 files changed, 3 insertions, 2 deletions
diff --git a/vendor/stb/lib/darwin/stb_sprintf.a b/vendor/stb/lib/darwin/stb_sprintf.a Binary files differnew file mode 100644 index 000000000..e364ee200 --- /dev/null +++ b/vendor/stb/lib/darwin/stb_sprintf.a diff --git a/vendor/stb/lib/stb_sprintf.lib b/vendor/stb/lib/stb_sprintf.lib Binary files differnew file mode 100644 index 000000000..35c2cecc9 --- /dev/null +++ b/vendor/stb/lib/stb_sprintf.lib diff --git a/vendor/stb/sprintf/stb_sprintf.odin b/vendor/stb/sprintf/stb_sprintf.odin index ec5036e45..88119abd1 100644 --- a/vendor/stb/sprintf/stb_sprintf.odin +++ b/vendor/stb/sprintf/stb_sprintf.odin @@ -29,7 +29,7 @@ when ODIN_ARCH == .wasm32 || ODIN_ARCH == .wasm64p32 { foreign stbpf { sprintf :: proc(buf: [^]byte, fmt: cstring, #c_vararg args: ..any) -> i32 --- snprintf :: proc(buf: [^]byte, count: i32, fmt: cstring, #c_vararg args: ..any) -> i32 --- - vsprintf :: proc(buf: [^]byte, fmt: cstring, va: c.va_list) -> i32 --- + vsprintf :: proc(buf: [^]byte, fmt: cstring, va: ^c.va_list) -> i32 --- vsnprintf :: proc(buf: [^]byte, count: i32, fmt: cstring, va: ^c.va_list) -> i32 --- vsprintfcb :: proc(callback: SPRINTFCB, user: rawptr, buf: [^]byte, fmt: cstring, va: ^c.va_list) -> i32 --- } diff --git a/vendor/stb/src/build.bat b/vendor/stb/src/build.bat index 5fd0e1789..54a0d249f 100644 --- a/vendor/stb/src/build.bat +++ b/vendor/stb/src/build.bat @@ -2,12 +2,13 @@ if not exist "..\lib" mkdir ..\lib -cl -nologo -MT -TC -O2 -c stb_image.c stb_image_write.c stb_image_resize.c stb_truetype.c stb_rect_pack.c stb_vorbis.c +cl -nologo -MT -TC -O2 -c stb_image.c stb_image_write.c stb_image_resize.c stb_truetype.c stb_rect_pack.c stb_vorbis.c stb_sprintf.c lib -nologo stb_image.obj -out:..\lib\stb_image.lib lib -nologo stb_image_write.obj -out:..\lib\stb_image_write.lib lib -nologo stb_image_resize.obj -out:..\lib\stb_image_resize.lib lib -nologo stb_truetype.obj -out:..\lib\stb_truetype.lib lib -nologo stb_rect_pack.obj -out:..\lib\stb_rect_pack.lib lib -nologo stb_vorbis.obj -out:..\lib\stb_vorbis.lib +lib -nologo stb_sprintf.obj -out:..\lib\stb_sprintf.lib del *.obj |