mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-05 15:09:31 +03:00
compile with /Zc:__cplusplus in vs2022
This commit is contained in:
parent
7bc602ebb4
commit
cea47b8560
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ mi_decl_nodiscard extern inline mi_decl_restrict void* mi_malloc_small(size_t si
|
||||||
}
|
}
|
||||||
|
|
||||||
// The main allocation function
|
// The main allocation function
|
||||||
mi_decl_nodiscard extern inline void* _mi_heap_malloc_zero(mi_heap_t* heap, size_t size, bool zero) mi_attr_noexcept {
|
extern inline void* _mi_heap_malloc_zero(mi_heap_t* heap, size_t size, bool zero) mi_attr_noexcept {
|
||||||
if mi_likely(size <= MI_SMALL_SIZE_MAX) {
|
if mi_likely(size <= MI_SMALL_SIZE_MAX) {
|
||||||
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