mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Slightly cleanup of mmap(2) flags:
Move MAP_32BIT to MemoryUtil.h. MAP_VARIABLE is simply the absence of MAP_FIXED. Replace MAP_ANONYMOUS with the more traditional MAP_ANON - Linux is compatible. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5899 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -18,8 +18,16 @@
|
||||
#ifndef _MEMORYUTIL_H
|
||||
#define _MEMORYUTIL_H
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <sys/mman.h>
|
||||
#endif
|
||||
#include <string>
|
||||
|
||||
// Linux-specific mmap(2) flag
|
||||
#ifndef MAP_32BIT
|
||||
#define MAP_32BIT 0
|
||||
#endif
|
||||
|
||||
void* AllocateExecutableMemory(size_t size, bool low = true);
|
||||
void* AllocateMemoryPages(size_t size);
|
||||
void FreeMemoryPages(void* ptr, size_t size);
|
||||
|
Reference in New Issue
Block a user