Source

gd-libgd / examples / nnquant.c

Diff from to

File examples/nnquant.c

 		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);
 }