From 5f0db948a62946b7d046323b6ba202fa84a0e2fb Mon Sep 17 00:00:00 2001 From: Brandon DeRosier Date: Fri, 1 Sep 2023 22:11:02 -0700 Subject: [PATCH] [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)). --- impeller/entity/contents/text_contents.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/impeller/entity/contents/text_contents.cc b/impeller/entity/contents/text_contents.cc index 9495556bef6f5..fceab90a6ed26 100644 --- a/impeller/entity/contents/text_contents.cc +++ b/impeller/entity/contents/text_contents.cc @@ -4,6 +4,7 @@ #include "impeller/entity/contents/text_contents.h" +#include #include #include #include @@ -193,7 +194,7 @@ bool TextContents::Render(const ContentContext& renderer, for (const Point& point : unit_points) { vtx.unit_position = point; - ::memcpy(vtx_contents++, &vtx, sizeof(VS::PerVertexData)); + std::memcpy(vtx_contents++, &vtx, sizeof(VS::PerVertexData)); } } }