# HG changeset patch # User kostya # Date 1254044591 0 # Node ID a1654cd1b5b9b1b5878efa2b5c1abfe8b2e42b48 # Parent 9699e4499f2d79c44eae61138b2f032d5bd09210 Do not compile ZLib data uncompressing function in TIFF decoder when ZLib is not present. Patch by Martin Storsj ($firstname $firstname two first letters of $lastname) diff -r 9699e4499f2d -r a1654cd1b5b9 tiff.c --- a/tiff.c Sun Sep 27 08:16:50 2009 +0000 +++ b/tiff.c Sun Sep 27 09:43:11 2009 +0000 @@ -75,6 +75,7 @@ } } +#if CONFIG_ZLIB static int tiff_uncompress(uint8_t *dst, unsigned long *len, const uint8_t *src, int size) { z_stream zstream; @@ -95,6 +96,7 @@ *len = zstream.total_out; return zret == Z_STREAM_END ? Z_OK : zret; } +#endif static int tiff_unpack_strip(TiffContext *s, uint8_t* dst, int stride, const uint8_t *src, int size, int lines){ int c, line, pixels, code;