diff options
author | Thomas White <taw@bitwiz.org.uk> | 2010-12-08 16:22:07 -0700 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:08 +0100 |
commit | afe9c96197c6b91a91717d1a637f7b285b1b4d4c (patch) | |
tree | 0a0400b5323b4fb3462e43cc21ec6a0ac410e551 /src | |
parent | 4e841e7a8592ca406235ecf181245dba0b0c5e30 (diff) |
Only include TIFF and PNG headers if present
Diffstat (limited to 'src')
-rw-r--r-- | src/render.c | 7 |
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" |