|
@@ -1748,7 +1748,8 @@ type
|
|
|
|
|
|
if target_info.system in systems_all_windows+systems_nativent then
|
|
if target_info.system in systems_all_windows+systems_nativent then
|
|
begin
|
|
begin
|
|
- main_procinfo:=create_main_proc('_DLLMainCRTStartup',potype_pkgstub,current_module.localsymtable);
|
|
|
|
|
|
+ main_procinfo:=create_main_proc('_PkgEntryPoint',potype_pkgstub,current_module.localsymtable);
|
|
|
|
+ main_procinfo.procdef.aliasnames.concat('_DLLMainCRTStartup');
|
|
main_procinfo.code:=generate_pkg_stub(main_procinfo.procdef);
|
|
main_procinfo.code:=generate_pkg_stub(main_procinfo.procdef);
|
|
main_procinfo.generate_code;
|
|
main_procinfo.generate_code;
|
|
end;
|
|
end;
|