Jump to content
EugeneK

Using System.Zlib instead of OverbyteIcsZLibObj

Recommended Posts

It is for XE2+ right now, i.e..

{$IFDEF DELPHI16_UP}
  {$DEFINE UseDelphiZlib}
{$ENDIF}

 

For Delphi 11, should be changed to DELPHI28_UP, not sure, how to check for Delphi 11.1

 

 

Share this post


Link to post

I recently added a IcsBuiltWith function to ICS to keep track of how I'm building the samples, there are RTL variables that can be checked for recent compilers:

 

{$IFDEF VER350}
    Result := '11.0';
    {$IF Declared(RTLVersion111)}Result := '11.1';{$IFEND}
    {$IF Declared(RTLVersion112)}Result := '11.2';{$IFEND}  // both declared
{$ENDIF}
{$IFDEF VER340}
    Result = '10.4';
    {$IF Declared(RTLVersion1041)}Result := '10.41';{$IFEND}
    {$IF Declared(RTLVersion1042)}Result := '10.42';{$IFEND}  // both declared
 {$ENDIF}

 

Angus

Share this post


Link to post

Busy finishing off other things, but the System.Zlib implentation will be the most painless and backward compatible solution possible, as are most ICS changes, don't like breaking things.

 

Angus

 

Share this post


Link to post

The ZLIB changes to use System.Zlib are now in SVN, considerably simplified so two defines are now only used once each in one unit, making it easier to support. 

 

But you do need to use the new OverbyteIcsDefs.inc or edit your own version, see the SVN notes.

 

Angus

 

  • Like 2

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
×