jumaris / indyproject

Automatically exported from code.google.com/p/indyproject
0 stars 0 forks source link

Change zlib .obj files to use __cdecl instead of __fastcall #201

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Indy's zlib .obj files are compiled to use Delphi's __fastcall calling 
convention, and Indy's code is written to expect that when static linking 
(when dynamic loading, it uses the __cdecl calling convention instead).

In XE2, Embarcadero changed Indy to use their own zlib .obj files instead of 
Indy's, but they changed their .objs to use __cdecl instead of __fastcall for 
better compatiblity when accessing zlib regardless of static linking or dynamic 
loading.  They did not tell us about that change, so now we have to update Indy 
to standardize its .obj files on __cdecl as well.

Which is not a bad thing, I do not know why we weren't doing that in the first 
place since that is what zlib normally uses.

Original issue reported on code.google.com by gambit47 on 7 Oct 2011 at 7:18

GoogleCodeExporter commented 9 years ago
Indy has been updated to use __cdecl when static-linking ZLib under XE2.  Still 
need to carry this logic to previous versions.

Original comment by gambit47 on 7 Dec 2011 at 10:03