From 713d9cbf939e525e025a69a17bda0bf51b449c47 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Mon, 10 Feb 2020 20:25:36 +0000 Subject: [PATCH] webgpu.h: Fix WGPU_WHOLE_SIZE causing linking errors. The symbol was not marked as static and would cause linking errors because it would be defined in multiple translation units. Replace it with a more traditional C-style #define. Bug: Change-Id: I19151884b7e8e171f829ffa47b1d119aff12ff99 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/15740 Reviewed-by: Austin Eng Commit-Queue: Corentin Wallez --- generator/templates/webgpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/templates/webgpu.h b/generator/templates/webgpu.h index 52005ac1e1..bae0a53e60 100644 --- a/generator/templates/webgpu.h +++ b/generator/templates/webgpu.h @@ -73,7 +73,7 @@ #include #include -const uint64_t WGPU_WHOLE_SIZE = 0xffffffffffffffffULL; // UINT64_MAX +#define WGPU_WHOLE_SIZE (0xffffffffffffffffULL) typedef uint32_t WGPUFlags;