aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"