From b8a6a9d9b50c319ccd002e98ac50980dc9f3a5e6 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Wed, 14 Mar 2012 11:57:13 +0000 Subject: [PATCH] fix compiler warning --- libvips/foreign/vipspng.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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;