Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 5f0db94

Browse files
authored
[Impeller] Import cstring for memcpy. (#45408)
Fixes builds against some STLs (detected in impeller-cmake [ubuntu build](https://github.com/bdero/impeller-cmake/actions/runs/6020031888/job/16330726595)).
1 parent 1be0185 commit 5f0db94

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

impeller/entity/contents/text_contents.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#include "impeller/entity/contents/text_contents.h"
66

7+
#include <cstring>
78
#include <optional>
89
#include <type_traits>
910
#include <utility>
@@ -193,7 +194,7 @@ bool TextContents::Render(const ContentContext& renderer,
193194

194195
for (const Point& point : unit_points) {
195196
vtx.unit_position = point;
196-
::memcpy(vtx_contents++, &vtx, sizeof(VS::PerVertexData));
197+
std::memcpy(vtx_contents++, &vtx, sizeof(VS::PerVertexData));
197198
}
198199
}
199200
}

0 commit comments

Comments
 (0)