Fixed mangling of the slic3r_main symbol on win32.
This commit is contained in:
parent
de55a60bf5
commit
35d984b812
@ -227,7 +227,14 @@ int wmain(int argc, wchar_t **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// resolve function address here
|
// resolve function address here
|
||||||
slic3r_main = (Slic3rMainFunc)GetProcAddress(hInstance_Slic3r, "slic3r_main");
|
slic3r_main = (Slic3rMainFunc)GetProcAddress(hInstance_Slic3r,
|
||||||
|
#ifdef _WIN64
|
||||||
|
// there is just a single calling conversion, therefore no mangling of the function name.
|
||||||
|
"slic3r_main"
|
||||||
|
#else // stdcall calling convention declaration
|
||||||
|
"_slic3r_main@8"
|
||||||
|
#endif
|
||||||
|
);
|
||||||
if (slic3r_main == nullptr) {
|
if (slic3r_main == nullptr) {
|
||||||
printf("could not locate the function slic3r_main in slic3r.dll\n");
|
printf("could not locate the function slic3r_main in slic3r.dll\n");
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user