mirror of
https://github.com/SFML/SFML.git
synced 2024-12-01 15:51:04 +08:00
Added missing import for memcpy and switched to std::memcpy
This commit is contained in:
parent
4c4e961f39
commit
3da81aeecb
@ -45,6 +45,7 @@
|
|||||||
#include <SFML/System/Err.hpp>
|
#include <SFML/System/Err.hpp>
|
||||||
#include <android/window.h>
|
#include <android/window.h>
|
||||||
#include <android/native_activity.h>
|
#include <android/native_activity.h>
|
||||||
|
#include <cstring>
|
||||||
|
|
||||||
|
|
||||||
extern int main(int argc, char *argv[]);
|
extern int main(int argc, char *argv[]);
|
||||||
@ -485,7 +486,7 @@ void ANativeActivity_onCreate(ANativeActivity* activity, void* savedState, size_
|
|||||||
{
|
{
|
||||||
states->savedState = malloc(savedStateSize);
|
states->savedState = malloc(savedStateSize);
|
||||||
states->savedStateSize = savedStateSize;
|
states->savedStateSize = savedStateSize;
|
||||||
memcpy(states->savedState, savedState, savedStateSize);
|
std::memcpy(states->savedState, savedState, savedStateSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
states->mainOver = false;
|
states->mainOver = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user