From fede8cc15bc64e17529b871d9be1c43146fd52b1 Mon Sep 17 00:00:00 2001 From: Thomas Kindler Date: Wed, 16 Sep 2020 22:14:38 +0200 Subject: [PATCH] fix compilation issue in Mingw-w64 See https://github.com/mahilab/mahi-gui/issues/26 --- src/Mahi/Gui/Application.cpp | 1 + src/Mahi/Gui/nanovg_custom.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mahi/Gui/Application.cpp b/src/Mahi/Gui/Application.cpp index 472e25c..75c84b0 100644 --- a/src/Mahi/Gui/Application.cpp +++ b/src/Mahi/Gui/Application.cpp @@ -21,6 +21,7 @@ #ifdef __linux__ #include #else +#include using std::memcpy; #endif diff --git a/src/Mahi/Gui/nanovg_custom.cpp b/src/Mahi/Gui/nanovg_custom.cpp index 0a982fa..cf6c786 100644 --- a/src/Mahi/Gui/nanovg_custom.cpp +++ b/src/Mahi/Gui/nanovg_custom.cpp @@ -11,6 +11,7 @@ #ifdef __linux__ #include #else +#include using std::memcpy; #endif @@ -198,4 +199,4 @@ NSVGimage* nsvgParseFromString(const std::string& str, const char* units, float } // namespace gui -} // namespace mahi \ No newline at end of file +} // namespace mahi