summaryrefslogtreecommitdiff
path: root/japanese/ming/files/patch-util_gif2dbl.c
diff options
context:
space:
mode:
Diffstat (limited to 'japanese/ming/files/patch-util_gif2dbl.c')
-rw-r--r--japanese/ming/files/patch-util_gif2dbl.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/japanese/ming/files/patch-util_gif2dbl.c b/japanese/ming/files/patch-util_gif2dbl.c
deleted file mode 100644
index 72ab6dbdee2c..000000000000
--- a/japanese/ming/files/patch-util_gif2dbl.c
+++ /dev/null
@@ -1,34 +0,0 @@
---- ../util/gif2dbl.c.orig 2002-06-24 12:21:54 UTC
-+++ ../util/gif2dbl.c
-@@ -16,7 +16,6 @@
- void error(char *msg)
- {
- printf("%s:\n\n", msg);
-- PrintGifError();
- exit(-1);
- }
-
-@@ -50,7 +49,11 @@ unsigned char *readGif(char *fileName, i
- unsigned char *p;
- int i, nColors, size, alpha, bgColor, alignedWidth;
-
-+#if GIFLIB_MAJOR >= 5
-+ if((file = DGifOpenFileName(fileName, NULL)) == NULL)
-+#else
- if((file = DGifOpenFileName(fileName)) == NULL)
-+#endif
- error("Error opening file");
-
- if(DGifSlurp(file) != GIF_OK)
-@@ -181,7 +184,11 @@ unsigned char *readGif(char *fileName, i
- }
-
- /* Done! */
-+#if GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1 || GIFLIB_MAJOR > 5
-+ DGifCloseFile(file, NULL);
-+#else
- DGifCloseFile(file);
-+#endif
-
- *length = size;
- return data;