1
0
forked from pool/mapserver
mapserver/giflib_5.1.0.patch

15 lines
597 B
Diff

--- mapimageio.c.orig 2016-02-05 15:03:30.375271083 +0100
+++ mapimageio.c 2016-02-05 15:15:29.994938301 +0100
@@ -1303,7 +1303,11 @@ int readGIF(char *path, rasterBufferObj
} while (recordType != TERMINATE_RECORD_TYPE);
+#if defined GIFLIB_MAJOR && GIFLIB_MAJOR >= 5 && defined GIFLIB_MINOR && GIFLIB_MINOR >= 1
+ if (DGifCloseFile(image, &errcode) == GIF_ERROR) {
+#else
if (DGifCloseFile(image) == GIF_ERROR) {
+#endif
#if defined GIFLIB_MAJOR && GIFLIB_MAJOR >= 5
msSetError(MS_MISCERR,"failed to close gif after loading: %s","readGIF()", gif_error_msg(image->Error));
#else