Source

gd-libgd / examples / arc.c

Diff from to

File examples/arc.c

 		gdImageDestroy(im);
 		return 1;
 	}
+#ifdef HAVE_LIBPNG
 	gdImagePng(im, fp);
+#else
+	printf("No PNG support. Cannot save image.\n");
+#endif
 	fclose(fp);
 
 	gdImageDestroy(im);