Browse Source

* fix for rev 3349.

git-svn-id: trunk@3353 -
yury 19 years ago
parent
commit
2fc45056c7
1 changed files with 6 additions and 0 deletions
  1. 6 0
      compiler/systems/t_win.pas

+ 6 - 0
compiler/systems/t_win.pas

@@ -413,7 +413,9 @@ implementation
       var
       var
          hp1 : timportList;
          hp1 : timportList;
          hp2 : twin32imported_item;
          hp2 : twin32imported_item;
+{$ifdef arm}
          mangledstring : string;
          mangledstring : string;
+{$endif arm}
       begin
       begin
         AsmPrefix:='imp'+Lower(current_module.modulename^);
         AsmPrefix:='imp'+Lower(current_module.modulename^);
         idatalabnr:=0;
         idatalabnr:=0;
@@ -429,11 +431,15 @@ implementation
             hp2:=twin32imported_item(hp1.imported_items.first);
             hp2:=twin32imported_item(hp1.imported_items.first);
             while assigned(hp2) do
             while assigned(hp2) do
               begin
               begin
+{$ifdef arm}
                 if assigned(hp2.procdef) then
                 if assigned(hp2.procdef) then
                   mangledstring:=hp2.procdef.mangledname
                   mangledstring:=hp2.procdef.mangledname
                 else
                 else
                   mangledstring:=hp2.name^;
                   mangledstring:=hp2.name^;
                 AddImport(hp2.name^,mangledstring,hp2.ordnr,hp2.is_var);
                 AddImport(hp2.name^,mangledstring,hp2.ordnr,hp2.is_var);
+{$else arm}
+                AddImport(hp2.name^,hp2.name^,hp2.ordnr,hp2.is_var);
+{$endif arm}
                 hp2:=twin32imported_item(hp2.next);
                 hp2:=twin32imported_item(hp2.next);
               end;
               end;
             EndImport;
             EndImport;