fix win32 compilation

This commit is contained in:
Daan 2024-10-22 06:06:15 -07:00
parent e55ae0aeb7
commit 46e9e7fdd0

View file

@ -659,7 +659,7 @@ static void NTAPI mi_win_main(PVOID module, DWORD reason, LPVOID reserved) {
#pragma comment(linker, "/INCLUDE:__tls_used") #pragma comment(linker, "/INCLUDE:__tls_used")
#pragma comment(linker, "/INCLUDE:__mi_tls_callback") #pragma comment(linker, "/INCLUDE:__mi_tls_callback")
#pragma data_seg(".CRT$XLB") #pragma data_seg(".CRT$XLB")
const PIMAGE_TLS_CALLBACK _mi_tls_callback[] = { &mi_win_main }; PIMAGE_TLS_CALLBACK _mi_tls_callback[] = { &mi_win_main };
#pragma data_seg() #pragma data_seg()
#endif #endif
@ -738,7 +738,7 @@ static void NTAPI mi_win_main(PVOID module, DWORD reason, LPVOID reserved) {
// ---------------------------------------------------- // ----------------------------------------------------
#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 #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) {