From c1dcc3e509c9de380a26a114fd4d7a6006f09436 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Fri, 28 Sep 2012 13:30:28 +0100 Subject: [PATCH] fix a compile fail if no libtiff compilation failed if libtiff-dev was not found, thanks Martin --- ChangeLog | 1 + libvips/deprecated/im_tiff2vips.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a09a0844..868eaa50 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 13/9/12 started 7.30.3 - linecache sized itself too large +- fix a compile failure if libtiff was not found (thanks Martin) 4/9/12 started 7.30.2 - sequential stops all threads on error diff --git a/libvips/deprecated/im_tiff2vips.c b/libvips/deprecated/im_tiff2vips.c index f67f8a3a..6785ce57 100644 --- a/libvips/deprecated/im_tiff2vips.c +++ b/libvips/deprecated/im_tiff2vips.c @@ -83,6 +83,7 @@ tiff2vips( const char *name, IMAGE *out, gboolean header_only ) * malloc if all we are doing is looking at fields. */ +#ifdef HAVE_TIFF if( !header_only && !seq && !vips__istifftiled( filename ) && @@ -91,7 +92,6 @@ tiff2vips( const char *name, IMAGE *out, gboolean header_only ) return( -1 ); } -#ifdef HAVE_TIFF if( header_only ) { if( vips__tiff_read_header( filename, out, page ) ) return( -1 );