summaryrefslogtreecommitdiff
path: root/src/gdparttopng.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gdparttopng.c')
-rw-r--r--src/gdparttopng.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gdparttopng.c b/src/gdparttopng.c
index 03386b8..677a0b5 100644
--- a/src/gdparttopng.c
+++ b/src/gdparttopng.c
@@ -47,7 +47,11 @@ main (int argc, char **argv)
gdImageDestroy (im);
exit (1);
}
+#ifdef HAVE_LIBPNG
gdImagePng (im, out);
+#else
+ fprintf(stderr, "No PNG library support.\n");
+#endif
fclose (out);
gdImageDestroy (im);