1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00

Fix memcpy not found on Android.

This commit is contained in:
Sergey Lipskiy 2015-05-04 20:11:21 +06:00
parent e9564caaab
commit d1a16d0a12

View File

@ -1,5 +1,6 @@
#include <assert.h> #include <assert.h>
#include <memory.h> #include <memory.h>
#include <cstring>
#include "N64.h" #include "N64.h"
#include "RSP.h" #include "RSP.h"
#include "RDP.h" #include "RDP.h"
@ -577,7 +578,7 @@ void RDP_ProcessRDPList()
} }
if (RDP.cmd_cur + CmdLength[cmd] / 4 > MAXCMD) if (RDP.cmd_cur + CmdLength[cmd] / 4 > MAXCMD)
memcpy(RDP.cmd_data + MAXCMD, RDP.cmd_data, CmdLength[cmd] - (MAXCMD - RDP.cmd_cur) * 4); ::memcpy(RDP.cmd_data + MAXCMD, RDP.cmd_data, CmdLength[cmd] - (MAXCMD - RDP.cmd_cur) * 4);
// execute the command // execute the command
u32 w0 = RDP.cmd_data[RDP.cmd_cur+0]; u32 w0 = RDP.cmd_data[RDP.cmd_cur+0];