From 3da81aeecb2f635b3da45043381cbde0fd0041b2 Mon Sep 17 00:00:00 2001 From: Alexander Weinrauch Date: Thu, 3 May 2018 22:04:11 +0200 Subject: [PATCH] Added missing import for memcpy and switched to std::memcpy --- src/SFML/Main/MainAndroid.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SFML/Main/MainAndroid.cpp b/src/SFML/Main/MainAndroid.cpp index 25696fe97..fcb85001f 100644 --- a/src/SFML/Main/MainAndroid.cpp +++ b/src/SFML/Main/MainAndroid.cpp @@ -45,6 +45,7 @@ #include #include #include +#include extern int main(int argc, char *argv[]); @@ -485,7 +486,7 @@ void ANativeActivity_onCreate(ANativeActivity* activity, void* savedState, size_ { states->savedState = malloc(savedStateSize); states->savedStateSize = savedStateSize; - memcpy(states->savedState, savedState, savedStateSize); + std::memcpy(states->savedState, savedState, savedStateSize); } states->mainOver = false;