mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix #3415
This commit is contained in:
@@ -163,6 +163,10 @@ gb_internal void platform_virtual_memory_protect(void *memory, isize size);
|
|||||||
GB_ASSERT(is_protected);
|
GB_ASSERT(is_protected);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
#if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
|
||||||
|
#define MAP_ANONYMOUS MAP_ANON
|
||||||
|
#endif
|
||||||
|
|
||||||
gb_internal void platform_virtual_memory_init(void) {
|
gb_internal void platform_virtual_memory_init(void) {
|
||||||
global_platform_memory_block_sentinel.prev = &global_platform_memory_block_sentinel;
|
global_platform_memory_block_sentinel.prev = &global_platform_memory_block_sentinel;
|
||||||
global_platform_memory_block_sentinel.next = &global_platform_memory_block_sentinel;
|
global_platform_memory_block_sentinel.next = &global_platform_memory_block_sentinel;
|
||||||
|
|||||||
Reference in New Issue
Block a user