fix duplicate definition on windows

This commit is contained in:
Daan 2024-10-21 23:09:14 -07:00
parent f971bd6d74
commit e55ae0aeb7

View file

@ -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) {