From a37905cc0c4f05f3b0907907692c102c12db5fa9 Mon Sep 17 00:00:00 2001 From: anders_k Date: Wed, 9 Nov 2011 18:24:27 +0000 Subject: [PATCH] Math: Unicode merge made MinGW build crash again (Bug#2835731), adding fix back in git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6169 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/Math/Source/Math.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Contrib/Math/Source/Math.c b/Contrib/Math/Source/Math.c index 2dda69af..da39dedc 100644 --- a/Contrib/Math/Source/Math.c +++ b/Contrib/Math/Source/Math.c @@ -1554,7 +1554,7 @@ void CleanAll(int init) } } -BOOL WINAPI DllMain(HINSTANCE hInst, ULONG ul_reason_for_call, LPVOID lpReserved) +extern "C" BOOL WINAPI DllMain(HINSTANCE hInst, ULONG ul_reason_for_call, LPVOID lpReserved) { g_hInstance = hInst; CleanAll(ul_reason_for_call == DLL_PROCESS_ATTACH);