diff --git a/libvips/foreign/vipspng.c b/libvips/foreign/vipspng.c index 73568c1e..7900f4ad 100644 --- a/libvips/foreign/vipspng.c +++ b/libvips/foreign/vipspng.c @@ -189,7 +189,15 @@ png2vips_header( Read *read, VipsImage *out ) png_charp name; int compression_type; + + /* Well thank you, libpng. + */ +#if PNG_LIBPNG_VER < 10400 + png_charp profile; +#else png_bytep profile; +#endif + png_uint_32 proflen; int bands;