zexmlss icon indicating copy to clipboard operation
zexmlss copied to clipboard

FPC 3.2+ incompability - compiler error with addref / release

Open TommySlokky opened this issue 3 years ago • 0 comments

From https://forum.lazarus.freepascal.org/index.php/topic,51546.0.html

FPC 3.2.0 and newer is stricter in checking that interface methods do indeed match correctly. The correct declaration of _AddRef and _Release is as they are declared in IInterface:

Code: Pascal [Select][+] function _AddRef : longint;{$IFNDEF WINDOWS}cdecl{$ELSE}stdcall{$ENDIF}; function _Release : longint;{$IFNDEF WINDOWS}cdecl{$ELSE}stdcall{$ENDIF};

TommySlokky avatar Sep 23 '20 13:09 TommySlokky