From 1b82fd0686aa2894d57a2eef673e106857b2e9c4 Mon Sep 17 00:00:00 2001 From: no Date: Thu, 14 Jan 2016 19:19:51 -0500 Subject: [PATCH] [core] std::memcpy() undeclared, so use memcpy(). --- Source/Project64-core/N64System/Mips/PifRam.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Project64-core/N64System/Mips/PifRam.cpp b/Source/Project64-core/N64System/Mips/PifRam.cpp index 0af058233..33e2d175f 100644 --- a/Source/Project64-core/N64System/Mips/PifRam.cpp +++ b/Source/Project64-core/N64System/Mips/PifRam.cpp @@ -182,13 +182,13 @@ void CPifRam::PifRamWrite() { ResponseValue = (ResponseValue << 8) | ((Response[(z - 1) * 2] << 4) + Response[(z - 1) * 2 + 1]); } - std::memcpy(&m_PifRam[48], &ResponseValue, sizeof(uint64_t)); + memcpy(&m_PifRam[48], &ResponseValue, sizeof(uint64_t)); ResponseValue = 0; for (int z = 7; z > 0; z--) { ResponseValue = (ResponseValue << 8) | ((Response[((z + 8) - 1) * 2] << 4) + Response[((z + 8) - 1) * 2 + 1]); } - std::memcpy(&m_PifRam[56], &ResponseValue, sizeof(uint64_t)); + memcpy(&m_PifRam[56], &ResponseValue, sizeof(uint64_t)); } break; case 0x08: @@ -618,7 +618,7 @@ void CPifRam::ReadControllerCommand(int Control, uint8_t * Command) { } const uint32_t buttons = g_BaseSystem->GetButtons(Control); - std::memcpy(&Command[3], &buttons, sizeof(uint32_t)); + memcpy(&Command[3], &buttons, sizeof(uint32_t)); } break; case 0x02: //read from controller pack