Exclude libpng load when building with libspng
Similar to ce63fc1
, but allowing libpng to be configured with
-DPNG_NO_READ (i.e reading functionally disabled).
This commit is contained in:
parent
0982d0efbb
commit
9b9843f698
@ -161,6 +161,8 @@ user_warning_function( png_structp png_ptr, png_const_charp warning_msg )
|
||||
g_warning( "%s", warning_msg );
|
||||
}
|
||||
|
||||
#ifndef HAVE_SPNG
|
||||
|
||||
#define INPUT_BUFFER_SIZE (4096)
|
||||
|
||||
/* What we track during a PNG read.
|
||||
@ -763,6 +765,8 @@ vips__png_isinterlaced_source( VipsSource *source )
|
||||
return( interlace_type != PNG_INTERLACE_NONE );
|
||||
}
|
||||
|
||||
#endif /*!defined(HAVE_SPNG)*/
|
||||
|
||||
const char *vips__png_suffs[] = { ".png", NULL };
|
||||
|
||||
/* What we track during a PNG write.
|
||||
|
Loading…
Reference in New Issue
Block a user