Skip to content

Remove conditional code for compiling googleapiconv with fpc v2.6.4 on i386

Conditional code was added 7 years ago to work around a bug with FPC v2.6.4 on i386:

{$ifdef ver2_6}
    // Version 2.6.4 has a bug for i386 where the array cannot be set through RTTI.
    // This is a helper method that sets the length of the array to the desired length,
    // After which the new array pointer is read again.
    // AName is guaranteed to be lowercase
    Procedure SetArrayLength(const AName : String; ALength : Longint); virtual;
{$endif}

I propose this cleanup to remove "ver2_6" conditionals from the google api files and restbase.pp. New bindings (once they are generated) will require a compiler newer than v2.6.4.

Merge request reports