Open GoogleCodeExporter opened 9 years ago
I can confirm this error when compiling an iOS app with XE2 & FPC.
This really needs to be fixed, please. :)
Original comment by MikeOz...@gmail.com
on 15 May 2012 at 3:49
It's an easy fix actually. IUnkown._AddRef; has should have a cdecl decleration
where it currently is stdcall. The compilation error also occurs when on
compiling on UNIX platforms (Mac, Linux, iOS).
This is what needs to be fixed in order to compile:
In TSuperObject, replace lines 655 and 656
function _AddRef: Integer; virtual; stdcall;
function _Release: Integer; virtual; stdcall;
with
function _AddRef: Integer; virtual; {$IFNDEF
WINDOWS}cdecl{$ELSE}stdcall{$ENDIF};
function _Release: Integer; virtual; {$IFNDEF
WINDOWS}cdecl{$ELSE}stdcall{$ENDIF};
Also replace line 5218
function TSuperObject._AddRef: Integer; stdcall;
with
function TSuperObject._AddRef: Integer; {$IFNDEF
WINDOWS}cdecl{$ELSE}stdcall{$ENDIF};
and line 5223
function TSuperObject._Release: Integer; stdcall;
with
function TSuperObject._Release: Integer; {$IFNDEF
WINDOWS}cdecl{$ELSE}stdcall{$ENDIF};
Original comment by stein.joey
on 17 May 2012 at 2:42
Original issue reported on code.google.com by
mayozel...@gmail.com
on 23 Mar 2012 at 3:16