Closed hafedh-trimeche closed 2 years ago
Your source code is clearly outdated.
Here is how it is currently defined:
{$ifdef FPC} // FPC already use heap instead of GlobalAlloc()
THeapMemoryStream = TMemoryStream;
{$else}
{$ifndef UNICODE} // old Delphi used GlobalAlloc()
THeapMemoryStream = class(TMemoryStream)
protected
function Realloc(var NewCapacity: longint): Pointer; override;
end;
{$else}
THeapMemoryStream = TMemoryStream;
{$endif}
{$endif}
Which compiles fine.
Please use the forum before creating a ticket in github.
this declaration generated error:
[dcc64 Error] SynCommons.pas(13427): E2037 Declaration of 'Realloc' differs from previous declaration
longint vs NativeInt. It should be declared as: