common: fix compilation

This commit is contained in:
Gregory Hainaut 2015-06-05 21:18:21 +02:00
parent 4feeaac7d1
commit a2a9b6252a
2 changed files with 9 additions and 1 deletions

View File

@ -235,7 +235,7 @@ namespace HostSys
extern void MemProtect( void* baseaddr, size_t size, const PageProtectionMode& mode ); extern void MemProtect( void* baseaddr, size_t size, const PageProtectionMode& mode );
extern void Munmap( void* base, size_t size ) { Munmap( (uptr)base, size); } extern void Munmap( void* base, size_t size );
template< uint size > template< uint size >
void MemProtectStatic( u8 (&arr)[size], const PageProtectionMode& mode ) void MemProtectStatic( u8 (&arr)[size], const PageProtectionMode& mode )

View File

@ -500,3 +500,11 @@ wxString PageProtectionMode::ToString() const
return modeStr; return modeStr;
} }
// --------------------------------------------------------------------------------------
// Common HostSys implementation
// --------------------------------------------------------------------------------------
void HostSys::Munmap( void* base, size_t size )
{
Munmap( (uptr)base, size);
}