Skip to content

Commit 09ff546

Browse files
committed
add missing header
1 parent 7bd6718 commit 09ff546

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/wgpu/wgpu-util.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22

33
#include "core/assert.h"
44

5+
#include <cstring>
6+
57
namespace rhi::wgpu {
68

79
WGPUStringView translateString(const char* str)
810
{
9-
return str ? WGPUStringView{str, strlen(str)} : WGPUStringView{nullptr, 0};
11+
return str ? WGPUStringView{str, ::strlen(str)} : WGPUStringView{nullptr, 0};
1012
}
1113

1214
WGPUTextureFormat translateTextureFormat(Format format)

0 commit comments

Comments
 (0)