mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-26 11:48:36 +01:00
[MemoryUtil] Platform changes for Nintendo Switch
This commit is contained in:
1 parent
b4f602de85
commit
0cf6f46330
4 files changed
+98
-1
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user