diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2020-04-10 03:40:48 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2020-04-10 03:40:48 +0000 |
commit | 503c0227622254c0ae3209a1fa72bcb68bb450bc (patch) | |
tree | 48df20533f300f819504c15af33cdc03fc386a93 /Build/source/libs/gd/libgd-src/src/gdtestft.c | |
parent | a9d86b73ecf95b83666e16c4d90e348c4958a63b (diff) |
libgd 2.3.0
git-svn-id: svn://tug.org/texlive/trunk@54636 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/gd/libgd-src/src/gdtestft.c')
-rw-r--r-- | Build/source/libs/gd/libgd-src/src/gdtestft.c | 14 |
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 */ } |