added extern "C" to DllMain so gcc will find it (patch #1255671)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4218 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
f9060a4364
commit
d0743b2ced
3 changed files with 3 additions and 3 deletions
|
@ -637,7 +637,7 @@ int __stdcall myatoi(char *s)
|
|||
return (int)v;
|
||||
}
|
||||
|
||||
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;
|
||||
switch (ul_reason_for_call) {
|
||||
case DLL_PROCESS_ATTACH:
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
#define NSISFunction(funcname) extern "C" void __declspec(dllexport) funcname(HWND hwndParent, int string_size, char *variables, stack_t **stacktop)
|
||||
|
||||
BOOL WINAPI DllMain(HANDLE hInst, ULONG ul_reason_for_call, LPVOID lpReserved) {
|
||||
extern "C" BOOL WINAPI DllMain(HANDLE hInst, ULONG ul_reason_for_call, LPVOID lpReserved) {
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
@ -190,7 +190,7 @@ static LRESULT CALLBACK ParentWndProc(HWND hwnd, UINT message, WPARAM wParam, LP
|
|||
return 0;
|
||||
}
|
||||
|
||||
BOOL APIENTRY DllMain(HINSTANCE _hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
|
||||
extern "C" BOOL APIENTRY DllMain(HINSTANCE _hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
|
||||
{
|
||||
hModule = _hModule;
|
||||
return TRUE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue