diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-02 12:24:29 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-02 12:24:29 +0100 |
| commit | e7fc9b3adeb37cb10726718e512b0da8dc49bc11 (patch) | |
| tree | d46b2877cc17692515c9dfe90c67417c6639e4ae /src/gpu/gpu.h | |
| parent | 053b29d162e7b157cecbfcd214005a961103ad67 (diff) | |
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.
Diffstat (limited to 'src/gpu/gpu.h')
| -rw-r--r-- | src/gpu/gpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 <webgpu/webgpu.h> |
