From Laurens Voerman, "while updating dependencies I found a problem with libgif 5 from http://sourceforge.net/projects/giflib/

a change in version 5.0.0 required a call to the fuction "DGifOpen" to pass an int ref for an error code.
My fix ignores the error, just fixes the compile."
This commit is contained in:
Robert Osfield 2013-06-03 14:04:02 +00:00
parent 05a1084e5c
commit 375e7c2d57

View File

@ -369,8 +369,12 @@ GifImageStream** obj)
/* The way an interlaced image should be read - offsets and jumps */ /* The way an interlaced image should be read - offsets and jumps */
int interlacedoffset[] = { 0, 4, 2, 1 }; int interlacedoffset[] = { 0, 4, 2, 1 };
int interlacedjumps[] = { 8, 8, 4, 2 }; int interlacedjumps[] = { 8, 8, 4, 2 };
#if (GIFLIB_MAJOR >= 5)
int Error;
giffile = DGifOpen(&fin,gif_read_stream, &Error);
#else
giffile = DGifOpen(&fin,gif_read_stream); giffile = DGifOpen(&fin,gif_read_stream);
#endif
if (!giffile) if (!giffile)
{ {
giferror = ERR_OPEN; giferror = ERR_OPEN;