mirror of
https://github.com/pound-emu/pound.git
synced 2025-12-12 10:37:00 +00:00
fix(memory): remove the inclusion of mman.h on windows.
Signed-off-by: Ronald Caesar <github43132@proton.me>
This commit is contained in:
parent
6ad2d300fb
commit
7897d0e2a2
1 changed files with 2 additions and 1 deletions
|
|
@ -7,6 +7,7 @@
|
||||||
Memory::Arena Memory::arena_init() {
|
Memory::Arena Memory::arena_init() {
|
||||||
// TODO(GloriousEggroll): Replace malloc with a windows memory mapping API.
|
// TODO(GloriousEggroll): Replace malloc with a windows memory mapping API.
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
auto data =
|
||||||
static_cast<uint8_t*>(malloc(sizeof(uint8_t) * MEMORY_CAPACITY));
|
static_cast<uint8_t*>(malloc(sizeof(uint8_t) * MEMORY_CAPACITY));
|
||||||
#else
|
#else
|
||||||
void* data = mmap(nullptr, MEMORY_CAPACITY, PROT_READ | PROT_WRITE,
|
void* data = mmap(nullptr, MEMORY_CAPACITY, PROT_READ | PROT_WRITE,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue