zexmlss
zexmlss copied to clipboard
FPC 3.2+ incompability - compiler error with addref / release
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};