mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-06 15:29:31 +03:00
fix duplicate definition on windows
This commit is contained in:
parent
f971bd6d74
commit
e55ae0aeb7
1 changed files with 2 additions and 0 deletions
|
@ -737,6 +737,8 @@ static void NTAPI mi_win_main(PVOID module, DWORD reason, LPVOID reserved) {
|
||||||
// Communicate with the redirection module on Windows
|
// Communicate with the redirection module on Windows
|
||||||
// ----------------------------------------------------
|
// ----------------------------------------------------
|
||||||
#if defined(MI_SHARED_LIB) && !defined(MI_WIN_NOREDIRECT)
|
#if defined(MI_SHARED_LIB) && !defined(MI_WIN_NOREDIRECT)
|
||||||
|
#define MI_PRIM_HAS_ALLOCATOR_INIT 1
|
||||||
|
|
||||||
static bool mi_redirected = false; // true if malloc redirects to mi_malloc
|
static bool mi_redirected = false; // true if malloc redirects to mi_malloc
|
||||||
|
|
||||||
bool _mi_is_redirected(void) {
|
bool _mi_is_redirected(void) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue