Skip to content

Commit

Permalink
Merge pull request #516 from urschanselmann/master
Browse files Browse the repository at this point in the history
Fix build error caused by undefined macro in Emscripten/WASI build
  • Loading branch information
daanx authored Jan 11, 2022
2 parents 03ba262 + 498a365 commit 139d099
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/os.c
Original file line number Diff line number Diff line change
Expand Up @@ -638,11 +638,11 @@ static void* mi_os_mem_alloc(size_t size, size_t try_alignment, bool commit, boo
if (commit) flags |= MEM_COMMIT;
p = mi_win_virtual_alloc(NULL, size, try_alignment, flags, false, allow_large, is_large);
#elif defined(MI_USE_SBRK)
KK_UNUSED(allow_large);
MI_UNUSED(allow_large);
*is_large = false;
p = mi_sbrk_heap_grow(size, try_alignment);
#elif defined(__wasi__)
KK_UNUSED(allow_large);
MI_UNUSED(allow_large);
*is_large = false;
p = mi_wasm_heap_grow(size, try_alignment);
#else
Expand Down

0 comments on commit 139d099

Please sign in to comment.