mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +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 <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;
|
||||
|
Loading…
Reference in New Issue
Block a user