Skip to content

Commit

Permalink
[Impeller] Import cstring for memcpy. (flutter#45408)
Browse files Browse the repository at this point in the history
Fixes builds against some STLs (detected in impeller-cmake [ubuntu
build](https://github.com/bdero/impeller-cmake/actions/runs/6020031888/job/16330726595)).
  • Loading branch information
bdero authored Sep 2, 2023
1 parent 1be0185 commit 5f0db94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion impeller/entity/contents/text_contents.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

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

#include <cstring>
#include <optional>
#include <type_traits>
#include <utility>
Expand Down Expand Up @@ -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));
}
}
}
Expand Down

0 comments on commit 5f0db94

Please sign in to comment.