diff options
Diffstat (limited to 'Build/source/libs/gd/libgd-src/src/testtr.c')
-rw-r--r-- | Build/source/libs/gd/libgd-src/src/testtr.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/Build/source/libs/gd/libgd-src/src/testtr.c b/Build/source/libs/gd/libgd-src/src/testtr.c index b7b419f96c0..ed1b374a8e8 100644 --- a/Build/source/libs/gd/libgd-src/src/testtr.c +++ b/Build/source/libs/gd/libgd-src/src/testtr.c @@ -11,8 +11,6 @@ int main(void) { -#ifdef HAVE_LIBFREETYPE - FILE *out; int transparent, green, black; gdImagePtr im; @@ -37,17 +35,15 @@ main(void) gdImageSaveAlpha (im, TRUE); #ifdef HAVE_LIBPNG - out = fopen ("testtr.png", "wb"); - gdImagePng (im, out); - fclose (out); + { + FILE *out = fopen("testtr.png", "wb"); + gdImagePng(im, out); + fclose(out); + } #else fprintf(stderr, "Compiled without libpng support\n"); #endif /* HAVE_LIBPNG */ gdImageDestroy (im); return 0; -#else - fprintf(stderr, "Compiled without freetype support\n"); - return 0; -#endif /* HAVE_LIBFREETYPE */ } |