mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
fix msvc compilation in C mode
This commit is contained in:
parent
50de0d2358
commit
2e311f341b
4 changed files with 19 additions and 3 deletions
|
@ -550,6 +550,9 @@ static bool mi_heap_area_visitor(const mi_heap_t* heap, const mi_heap_area_ex_t*
|
|||
|
||||
// Visit all blocks in a heap
|
||||
bool mi_heap_visit_blocks(const mi_heap_t* heap, bool visit_blocks, mi_block_visit_fun* visitor, void* arg) {
|
||||
mi_visit_blocks_args_t args = { visit_blocks, visitor, arg };
|
||||
mi_visit_blocks_args_t args = { 0 };
|
||||
args.visit_blocks = visit_blocks;
|
||||
args.visitor = visitor;
|
||||
args.arg = arg;
|
||||
return mi_heap_visit_areas(heap, &mi_heap_area_visitor, &args);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue