mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-11-14 21:37:42 -07:00
fix build on Switch
This commit is contained in:
parent
f2fa52f26c
commit
edf4c66724
@ -279,6 +279,7 @@ bool UnmapFromRange(u32 addr, u32 num, u32 offset, u32 size)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef __SWITCH__
|
||||||
void SetCodeProtectionRange(u32 addr, u32 size, u32 num, int protection)
|
void SetCodeProtectionRange(u32 addr, u32 size, u32 num, int protection)
|
||||||
{
|
{
|
||||||
u8* dst = (u8*)(num == 0 ? FastMem9Start : FastMem7Start) + addr;
|
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);
|
mprotect(dst, size, posixProt);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
struct Mapping
|
struct Mapping
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user