From 03590dede529f002dcd853013b118de188fe9be0 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 15 Oct 2022 00:57:31 -0700 Subject: [PATCH] glfw: workaround self-hosted compiler bug Helps hexops/mach#581 Signed-off-by: Stephen Gutekanst --- libs/glfw/src/Window.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/glfw/src/Window.zig b/libs/glfw/src/Window.zig index 0f6f4651..bea54ab4 100644 --- a/libs/glfw/src/Window.zig +++ b/libs/glfw/src/Window.zig @@ -699,7 +699,8 @@ pub const SizeOptional = struct { /// @thread_safety This function must only be called from the main thread. /// /// see also: window_sizelimits, glfw.Window.setAspectRatio -pub inline fn setSizeLimits(self: Window, min: SizeOptional, max: SizeOptional) error{PlatformError}!void { +// TODO(self-hosted): make inline fn again, once https://github.com/ziglang/zig/issues/13164 is fixed. +pub fn setSizeLimits(self: Window, min: SizeOptional, max: SizeOptional) error{PlatformError}!void { internal_debug.assertInitialized(); if (min.width != null and max.width != null) {