[MemoryUtil] Platform changes for Nintendo Switch

This commit is contained in:
M4xw
2023-06-26 16:17:45 +02:00
parent b4f602de85
commit 0cf6f46330
4 changed files with 98 additions and 1 deletions
+3 -1
View File
@@ -17,6 +17,7 @@
#include "ppsspp_config.h"
#if !PPSSPP_PLATFORM(SWITCH)
#include <cstring>
#include <cstdlib>
@@ -257,7 +258,7 @@ void *AllocateAlignedMemory(size_t size, size_t alignment) {
#endif
#endif
_assert_msg_(ptr != nullptr, "Failed to allocate aligned memory of size %llu", size);
_assert_msg_(ptr != nullptr, "Failed to allocate aligned memory of size %lu", size);
return ptr;
}
@@ -355,3 +356,4 @@ int GetMemoryProtectPageSize() {
#endif
return MEM_PAGE_SIZE;
}
#endif // !PPSSPP_PLATFORM(SWITCH)