From 1e0cd575a5a369b3ace3230eca0a001b11aa8d85 Mon Sep 17 00:00:00 2001 From: daan Date: Tue, 20 Aug 2019 07:06:53 -0700 Subject: [PATCH] do not export DllEntry on windows --- src/alloc-override-win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/alloc-override-win.c b/src/alloc-override-win.c index d1d51b9a..0bd05deb 100644 --- a/src/alloc-override-win.c +++ b/src/alloc-override-win.c @@ -666,7 +666,7 @@ static void mi_patches_at_quick_exit(void) { mi_patches_enable_term(); // enter termination phase and patch realloc/free with a no-op } -__declspec(dllexport) BOOL WINAPI DllEntry(HINSTANCE inst, DWORD reason, LPVOID reserved) { +BOOL WINAPI DllEntry(HINSTANCE inst, DWORD reason, LPVOID reserved) { if (reason == DLL_PROCESS_ATTACH) { __security_init_cookie(); }