Jump to content
Kyle_Katarn

ICS v8.64 can't compile on Delphi 7

Recommended Posts

Posted (edited)

ICS v8.64 can't compile on Delphi 7

 

Cause OverbyteIcsUtils:7230 (declaration expected but "INLINE" found)

function IcsPunyIsBasic(const C: WideChar): Boolean; Inline;

 

Inlining is only supported from Delphi 2005 onwards https://stackoverflow.com/questions/8460037/list-of-delphi-language-features-and-version-in-which-they-were-introduced-depre/8460108#8460108

Edited by Kyle_Katarn

Share this post


Link to post

Simply remove the inline keyword. This will not affect the function, only the performance.

 

Share this post


Link to post

Thanks, will be fixed in SVN later today.  Don't fire up Delphi 7 very often.

 

Angus

 

 

 

Share this post


Link to post

I have a case in my test suite that checks compilation for all supported delphi versions of all code that I ship to clients. Pretty easy to set up. 

  • Like 2

Share this post


Link to post
On 5/31/2020 at 8:59 PM, FPiette said:

Simply remove the inline keyword. This will not affect the function, only the performance.

 

Done, works fine

Share this post


Link to post

One additional comment, in 

procedure TIcsFileCopy.SetMultiDirList (const Value: string) ;

 

the following section in the var declaration

    I: integer ;
    aitems, afields: TStringList ;

shall be protected by {$IFDEF COMPILER10_UP} as these variable are not used otherwise.

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×