diff options
Diffstat (limited to 'examples/nnquant.c')
-rw-r--r-- | examples/nnquant.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/nnquant.c b/examples/nnquant.c index c5f452d..33ed523 100644 --- a/examples/nnquant.c +++ b/examples/nnquant.c @@ -12,7 +12,11 @@ void save_png(gdImagePtr im, const char *filename) fprintf(stderr, "Can't save png image %s\n", filename); return; } +#ifdef HAVE_LIBPNG gdImagePng(im, fp); +#else + printf("No PNG support. Cannot save image.\n"); +#endif fclose(fp); } |