From 562cf423489b1896e50d9754f6aa6211a74cd590 Mon Sep 17 00:00:00 2001 From: Meliketoaste Date: Sat, 25 Oct 2025 15:42:04 +0000 Subject: Update GetPlatformDisplay and CreatePlatformWindowSurface to take in intptr_t/int inistead of i32 --- vendor/egl/egl.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/egl/egl.odin b/vendor/egl/egl.odin index 3421e7be5..744dd2a5d 100644 --- a/vendor/egl/egl.odin +++ b/vendor/egl/egl.odin @@ -81,12 +81,12 @@ foreign import egl "system:EGL" @(default_calling_convention="c", link_prefix="egl") foreign egl { GetDisplay :: proc(display: NativeDisplayType) -> Display --- - GetPlatformDisplay :: proc(platform: Platform, native_display: rawptr, attrib_list: ^i32) -> Display --- + GetPlatformDisplay :: proc(platform: Platform, native_display: rawptr, attrib_list: ^int) -> Display --- Initialize :: proc(display: Display, major: ^i32, minor: ^i32) -> Boolean --- BindAPI :: proc(api: u32) -> Boolean --- ChooseConfig :: proc(display: Display, attrib_list: ^i32, configs: [^]Config, config_size: i32, num_config: ^i32) -> Boolean --- CreateWindowSurface :: proc(display: Display, config: Config, native_window: NativeWindowType, attrib_list: ^i32) -> Surface --- - CreatePlatformWindowSurface :: proc(display: Display, config: Config, native_window: rawptr, attrib_list: ^i32) -> Surface --- + CreatePlatformWindowSurface :: proc(display: Display, config: Config, native_window: rawptr, attrib_list: ^int) -> Surface --- CreateContext :: proc(display: Display, config: Config, share_context: Context, attrib_list: ^i32) -> Context --- MakeCurrent :: proc(display: Display, draw: Surface, read: Surface, ctx: Context) -> Boolean --- QuerySurface :: proc(display: Display, surface: Surface, attribute: i32, value: ^i32) -> Boolean --- -- cgit v1.2.3 From eb0e99dac12bba9d304df18e64179bb4000b1a21 Mon Sep 17 00:00:00 2001 From: Jeroen van Rijn Date: Mon, 27 Oct 2025 13:57:32 +0100 Subject: Fix #5852 --- core/c/c.odin | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/core/c/c.odin b/core/c/c.odin index 8266bf38a..bc847d566 100644 --- a/core/c/c.odin +++ b/core/c/c.odin @@ -49,7 +49,7 @@ int_least64_t :: builtin.i64 uint_least64_t :: builtin.u64 // Same on Windows, Linux, and FreeBSD -when ODIN_ARCH == .i386 || ODIN_ARCH == .amd64 { +when ODIN_ARCH == .i386 { int_fast8_t :: builtin.i8 uint_fast8_t :: builtin.u8 int_fast16_t :: builtin.i32 @@ -58,6 +58,15 @@ when ODIN_ARCH == .i386 || ODIN_ARCH == .amd64 { uint_fast32_t :: builtin.u32 int_fast64_t :: builtin.i64 uint_fast64_t :: builtin.u64 +} else when ODIN_ARCH == .amd64 { + int_fast8_t :: builtin.i8 + uint_fast8_t :: builtin.u8 + int_fast16_t :: long + uint_fast16_t :: ulong + int_fast32_t :: long + uint_fast32_t :: ulong + int_fast64_t :: builtin.i64 + uint_fast64_t :: builtin.u64 } else { int_fast8_t :: builtin.i8 uint_fast8_t :: builtin.u8 -- cgit v1.2.3