From 96daafc92d0507421b859783538512317eefb72c Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 31 Jan 2026 22:30:42 +0100 Subject: fix(build): resolve cross-platform build configuration errors - Corrected signature in for macOS native builds to match the 5-parameter definition. - Conditionally compiled assignments in for native builds and removed the definition for Windows from , resolving 'no member named ' errors in Windows cross-compilation. - Verified all macOS native build configurations (Debug, Size-Optimized, Final/Strip, Developer/All Options, Tests Only, Tools Only) and the Windows cross-compilation build are now compiling successfully. --- src/gpu/gpu.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gpu/gpu.cc') diff --git a/src/gpu/gpu.cc b/src/gpu/gpu.cc index ebf709e..8618280 100644 --- a/src/gpu/gpu.cc +++ b/src/gpu/gpu.cc @@ -266,9 +266,11 @@ static void handle_request_device(WGPURequestDeviceStatus status, } } static void handle_device_error(const WGPUDevice *device, WGPUErrorType type, - WGPUStringView message, void *userdata) { + WGPUStringView message, void *userdata, + void *userdata2) { (void)device; (void)userdata; + (void)userdata2; printf("WebGPU Error: %.*s\n", (int)message.length, message.data); } #endif -- cgit v1.2.3