Added missing import for memcpy and switched to std::memcpy

This commit is contained in:
Alexander Weinrauch 2018-05-03 22:04:11 +02:00
parent 4c4e961f39
commit 3da81aeecb

View File

@ -45,6 +45,7 @@
#include <SFML/System/Err.hpp>
#include <android/window.h>
#include <android/native_activity.h>
#include <cstring>
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;