From 81fea574deaafdefde2c50dd5803899230f2d7ca Mon Sep 17 00:00:00 2001 From: pabs3 Date: Wed, 19 Aug 2009 09:18:28 +0000 Subject: [PATCH] applied patch #2835731 - disable name mangling for the DllMain function so that the Math plugin could be properly initialized git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5998 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 6737a822..eb383a9c 100644 --- a/Contrib/Math/Source/Math.c +++ b/Contrib/Math/Source/Math.c @@ -1552,7 +1552,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);