Source

gd-libgd / src / gdparttopng.c

Diff from to

src/gdparttopng.c

       gdImageDestroy (im);
       exit (1);
     }
+#ifdef HAVE_LIBPNG
   gdImagePng (im, out);
+#else
+  fprintf(stderr, "No PNG library support.\n");
+#endif
   fclose (out);
   gdImageDestroy (im);