mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-08-24 16:24:47 +03:00
fix build on windows
This commit is contained in:
parent
4377abe017
commit
f971bd6d74
2 changed files with 5 additions and 4 deletions
|
@ -45,6 +45,7 @@ terms of the MIT license. A copy of the license can be found in the file
|
|||
}
|
||||
#elif defined(__cplusplus)
|
||||
// C++: use static initialization to detect process start
|
||||
extern mi_heap_t _mi_heap_main;
|
||||
static bool mi_process_attach(void) {
|
||||
_mi_process_load();
|
||||
atexit(&_mi_process_done);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue