mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-01 17:24:38 +03:00
fix extern inline definition (issue #643)
This commit is contained in:
parent
631f22fbda
commit
fe300ca141
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ mi_decl_nodiscard extern inline mi_decl_restrict void* mi_malloc_small(size_t si
|
||||||
}
|
}
|
||||||
|
|
||||||
// The main allocation function
|
// The main allocation function
|
||||||
inline void* _mi_heap_malloc_zero_ex(mi_heap_t* heap, size_t size, bool zero, size_t huge_alignment) mi_attr_noexcept {
|
extern inline void* _mi_heap_malloc_zero_ex(mi_heap_t* heap, size_t size, bool zero, size_t huge_alignment) mi_attr_noexcept {
|
||||||
if mi_likely(size <= MI_SMALL_SIZE_MAX) {
|
if mi_likely(size <= MI_SMALL_SIZE_MAX) {
|
||||||
mi_assert_internal(huge_alignment == 0);
|
mi_assert_internal(huge_alignment == 0);
|
||||||
return mi_heap_malloc_small_zero(heap, size, zero);
|
return mi_heap_malloc_small_zero(heap, size, zero);
|
||||||
|
|
Loading…
Add table
Reference in a new issue