aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRSDuck <rsduck@users.noreply.github.com>2020-09-11 19:29:06 +0200
committerRSDuck <rsduck@users.noreply.github.com>2020-09-11 19:29:06 +0200
commitedf4c66724b7371c3cafde68ea457b5aac372cb6 (patch)
treef42d414397b086b0a0103e06567d6ae1c4c1e953
parentf2fa52f26ceb1f385d58e57ab26ca7d5349978d2 (diff)
fix build on Switch
-rw-r--r--src/ARMJIT_Memory.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ARMJIT_Memory.cpp b/src/ARMJIT_Memory.cpp
index c5c8f04..d321d2f 100644
--- a/src/ARMJIT_Memory.cpp
+++ b/src/ARMJIT_Memory.cpp
@@ -279,6 +279,7 @@ bool UnmapFromRange(u32 addr, u32 num, u32 offset, u32 size)
#endif
}
+#ifndef __SWITCH__
void SetCodeProtectionRange(u32 addr, u32 size, u32 num, int protection)
{
u8* dst = (u8*)(num == 0 ? FastMem9Start : FastMem7Start) + addr;
@@ -303,6 +304,7 @@ void SetCodeProtectionRange(u32 addr, u32 size, u32 num, int protection)
mprotect(dst, size, posixProt);
#endif
}
+#endif
struct Mapping
{