From 1a05d70dd6ca10153b4646306da5e9ae631cdec7 Mon Sep 17 00:00:00 2001 From: Brandon DeRosier Date: Fri, 1 Sep 2023 17:04:19 -0700 Subject: [PATCH] [Impeller] Import cstring for memcpy. --- 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)); } } }