fix build with older libgsf
build on libgsf without zip64 support was broken, thanks @remicollet see https://github.com/libvips/libvips/issues/2878
This commit is contained in:
parent
a129476f0f
commit
e9414f8d8f
@ -678,6 +678,21 @@ G_DEFINE_ABSTRACT_TYPE( VipsForeignSaveDz, vips_foreign_save_dz,
|
||||
#define VIPS_ZIP_EOCD_SIZE 22
|
||||
|
||||
#ifndef HAVE_GSF_ZIP64
|
||||
/* ZIP and SZI are both written as zip files.
|
||||
*/
|
||||
static gboolean
|
||||
iszip( VipsForeignDzContainer container )
|
||||
{
|
||||
switch( container ) {
|
||||
case VIPS_FOREIGN_DZ_CONTAINER_ZIP:
|
||||
case VIPS_FOREIGN_DZ_CONTAINER_SZI:
|
||||
return( TRUE );
|
||||
|
||||
default:
|
||||
return( FALSE );
|
||||
}
|
||||
}
|
||||
|
||||
static size_t
|
||||
estimate_zip_size( VipsForeignSaveDz *dz )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user