Source

gd-libgd / examples / tgaread.c

Diff from to

File examples/tgaread.c

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