Browse Source

* add the C-prefix to the exported name of routines that are automatically
exported in {$z+} state in MacPas mode, so that the name chosen by
implicit imports in MacPas units without an implementation section matches
again after r16330 (fixes tests/test/tmacpas1 after r16330 on targets
with a cprefix<>'')

git-svn-id: trunk@16403 -

Jonas Maebe 14 years ago
parent
commit
a631ab2a7e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/pdecsub.pas

+ 1 - 1
compiler/pdecsub.pas

@@ -2677,7 +2677,7 @@ const
       begin
       begin
         if (m_mac in current_settings.modeswitches) and (cs_externally_visible in current_settings.localswitches) then
         if (m_mac in current_settings.modeswitches) and (cs_externally_visible in current_settings.localswitches) then
           begin
           begin
-            tprocdef(pd).aliasnames.insert(tprocdef(pd).procsym.realname);
+            tprocdef(pd).aliasnames.insert(target_info.Cprefix+tprocdef(pd).procsym.realname);
             include(pd.procoptions,po_public);
             include(pd.procoptions,po_public);
             include(pd.procoptions,po_has_public_name);
             include(pd.procoptions,po_has_public_name);
             include(pd.procoptions,po_global);
             include(pd.procoptions,po_global);