summaryrefslogtreecommitdiff
path: root/Build/source/libs/gd/libgd-src/src/gdtestft.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/gd/libgd-src/src/gdtestft.c')
-rw-r--r--Build/source/libs/gd/libgd-src/src/gdtestft.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/Build/source/libs/gd/libgd-src/src/gdtestft.c b/Build/source/libs/gd/libgd-src/src/gdtestft.c
index 53945a636cf..f50b17491ba 100644
--- a/Build/source/libs/gd/libgd-src/src/gdtestft.c
+++ b/Build/source/libs/gd/libgd-src/src/gdtestft.c
@@ -1,4 +1,3 @@
-
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -26,13 +25,6 @@
int
main (int argc, char *argv[])
{
-#ifndef HAVE_LIBFREETYPE
- fprintf(stderr, "gd was not compiled with HAVE_LIBFREETYPE defined.\n");
- fprintf(stderr, "Install the FreeType library, including the\n");
- fprintf(stderr, "header files. Then edit the gd Makefile, type\n");
- fprintf(stderr, "make clean, and type make again.\n");
- return 1;
-#else
gdImagePtr im;
int blue;
int blueAlpha;
@@ -40,7 +32,6 @@ main (int argc, char *argv[])
int brect[8];
int x, y, sx, sy;
char *err;
- FILE *out;
#ifdef JISX0208
char *s = "Hello. こんにちは Qyjpqg,"; /* String to draw. */
#else
@@ -155,7 +146,7 @@ main (int argc, char *argv[])
/* TBB: Write img to test/fttest.jpg or test/fttest.png */
if (im->trueColor) {
#ifdef HAVE_LIBJPEG
- out = fopen ("test/fttest.jpg", "wb");
+ FILE *out = fopen ("test/fttest.jpg", "wb");
if (!out) {
fprintf(stderr, "Can't create test/fttest.jpg\n");
exit (1);
@@ -169,7 +160,7 @@ main (int argc, char *argv[])
#endif
} else {
#ifdef HAVE_LIBPNG
- out = fopen ("test/fttest.png", "wb");
+ FILE *out = fopen ("test/fttest.png", "wb");
if (!out) {
fprintf(stderr, "Can't create test/fttest.png\n");
exit (1);
@@ -186,5 +177,4 @@ main (int argc, char *argv[])
gdImageDestroy (im);
return 0;
-#endif /* HAVE_LIBFREETYPE */
}