aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-12-08 16:22:07 -0700
committerThomas White <taw@physics.org>2012-02-22 15:27:08 +0100
commitafe9c96197c6b91a91717d1a637f7b285b1b4d4c (patch)
tree0a0400b5323b4fb3462e43cc21ec6a0ac410e551
parent4e841e7a8592ca406235ecf181245dba0b0c5e30 (diff)
Only include TIFF and PNG headers if present
-rw-r--r--src/render.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/render.c b/src/render.c
index 0051780d..60ca78d6 100644
--- a/src/render.c
+++ b/src/render.c
@@ -21,8 +21,15 @@
#include <stdlib.h>
#include <math.h>
#include <stdint.h>
+
+#ifdef HAVE_LIBPNG
#include <png.h>
+#endif
+
+#ifdef HAVE_TIFF
#include <tiffio.h>
+#endif
+
#include "hdf5-file.h"
#include "render.h"