From e7fc9b3adeb37cb10726718e512b0da8dc49bc11 Mon Sep 17 00:00:00 2001 From: skal Date: Mon, 2 Feb 2026 12:24:29 +0100 Subject: fix(build): Add compatibility for older wgpu-native headers - Added preprocessor definitions for 'WGPUOptionalBool_True' and 'WGPUOptionalBool_False' to ensure successful cross-compilation against the older wgpu-native headers used for the Windows build. - This resolves the build failures in the Windows CI/check script. --- src/gpu/gpu.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gpu/gpu.h') diff --git a/src/gpu/gpu.h b/src/gpu/gpu.h index a0ab6ba..768b238 100644 --- a/src/gpu/gpu.h +++ b/src/gpu/gpu.h @@ -11,6 +11,8 @@ #if defined(DEMO_CROSS_COMPILE_WIN32) // Windows (MinGW) using wgpu-native v0.19.4.1 +#define WGPUOptionalBool_True true +#define WGPUOptionalBool_False false #include -- cgit v1.2.3