Browse Source

* msdos: By default external routine names with the pascal calling convention must be all upper case. This is TP and TASM compatible.

git-svn-id: trunk@46432 -
yury 5 years ago
parent
commit
9d3b105fab
1 changed files with 3 additions and 0 deletions
  1. 3 0
      compiler/pdecsub.pas

+ 3 - 0
compiler/pdecsub.pas

@@ -3178,6 +3178,9 @@ const
                     result:=target_info.Cprefix+tprocdef(pd).procsym.realname
                     result:=target_info.Cprefix+tprocdef(pd).procsym.realname
                   else
                   else
                     result:=pd.procsym.realname;
                     result:=pd.procsym.realname;
+                  if (target_info.system=system_i8086_msdos) and
+                    (pd.proccalloption=pocall_pascal) then
+                    result:=UpCase(result);
                 end;
                 end;
             end;
             end;
           end;
           end;