diff options
author | Mike Frysinger <vapier@gentoo.org> | 2018-06-21 23:55:11 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2018-06-21 23:55:11 -0400 |
commit | 08b0dbaec64750b22d8aa195c9bca0455e0e34af (patch) | |
tree | 4c77fffdf98b9cd1e67a7e5500d88977d0a6b11d /examples/tgaread.c | |
parent | fd06f7f83c5e78bf5b7f5397746b4e5ee4366250 (diff) | |
download | libgd-08b0dbaec64750b22d8aa195c9bca0455e0e34af.tar.gz |
move (redundant) ifdef checks from source to build files
We've been tracking program deps in the build files, so it ends up
being redundant for a lot of our test/example programs. Clean them
up, and update some of the cmake/automake files as needed.
Diffstat (limited to 'examples/tgaread.c')
-rw-r--r-- | examples/tgaread.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/tgaread.c b/examples/tgaread.c index a8e0807..1fa9daf 100644 --- a/examples/tgaread.c +++ b/examples/tgaread.c @@ -44,11 +44,7 @@ int main() gdImageDestroy(im); return 1; } -#ifdef HAVE_LIBPNG - gdImagePng(im, fp); -#else - printf("No PNG support. Cannot save image.\n"); -#endif + gdImagePng(im, fp); fclose(fp); gdImageDestroy(im); } |