fix unused macro name for emscripten build

fix unused macro name for emscripten build
This commit is contained in:
urschanselmann 2022-01-05 12:13:17 +01:00 committed by GitHub
commit 498a365351
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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; if (commit) flags |= MEM_COMMIT;
p = mi_win_virtual_alloc(NULL, size, try_alignment, flags, false, allow_large, is_large); p = mi_win_virtual_alloc(NULL, size, try_alignment, flags, false, allow_large, is_large);
#elif defined(MI_USE_SBRK) #elif defined(MI_USE_SBRK)
KK_UNUSED(allow_large); MI_UNUSED(allow_large);
*is_large = false; *is_large = false;
p = mi_sbrk_heap_grow(size, try_alignment); p = mi_sbrk_heap_grow(size, try_alignment);
#elif defined(__wasi__) #elif defined(__wasi__)
KK_UNUSED(allow_large); MI_UNUSED(allow_large);
*is_large = false; *is_large = false;
p = mi_wasm_heap_grow(size, try_alignment); p = mi_wasm_heap_grow(size, try_alignment);
#else #else