From 6aee185fbdaa5c5bb1216066e53ed343f468b4ae Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 5 Jul 2010 17:33:53 +0200 Subject: Update documentation and conditional TIFF/PNG compilation --- src/render.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/render.c') diff --git a/src/render.c b/src/render.c index 72d0d8f0..df2e288f 100644 --- a/src/render.c +++ b/src/render.c @@ -476,6 +476,7 @@ int render_png(DisplayWindow *dw, const char *filename) int render_tiff_fp(DisplayWindow *dw, const char *filename) { +#ifdef HAVE_TIFF TIFF *th; struct image *image; float *line; @@ -514,12 +515,16 @@ int render_tiff_fp(DisplayWindow *dw, const char *filename) TIFFClose(th); +#else + STATUS("No TIFF support.\n"); +#endif return 0; } int render_tiff_int16(DisplayWindow *dw, const char *filename) { +#ifdef HAVE_TIFF TIFF *th; struct image *image; int16_t *line; @@ -583,6 +588,8 @@ int render_tiff_int16(DisplayWindow *dw, const char *filename) _TIFFfree(line); TIFFClose(th); - +#else + STATUS("No TIFF support.\n"); +#endif return 0; } -- cgit v1.2.3