Browse Source

* Do not use cprefix for cdecl DLL imports in Windows.

git-svn-id: trunk@3663 -
yury 19 years ago
parent
commit
5d82676f78
1 changed files with 5 additions and 1 deletions
  1. 5 1
      compiler/pdecsub.pas

+ 5 - 1
compiler/pdecsub.pas

@@ -2100,7 +2100,11 @@ const
                         { keep normal mangledname }
                       end;
                     else
-                      result:=maybe_cprefix(pd.import_name^);
+                      if target_info.system in system_all_windows then
+                        { cprefix is not used in DLL imports under Windows }
+                        result:=pd.import_name^
+                      else
+                        result:=maybe_cprefix(pd.import_name^);
                   end;
                 end
               else