* Source/NSBitmapImageRep+GIF.m (-_bitmapIsGIF:): Prepare for

additional argument to function DGifOpen in newer libgif
versions.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36459 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2013-04-03 18:30:46 +00:00
parent 51cbfa0dba
commit c9301f8873
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2013-04-03 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSBitmapImageRep+GIF.m (-_bitmapIsGIF:): Prepare for
additional argument to function DGifOpen in newer libgif versions.
2013-03-28 Richard Frith-Macdonald <rfm@gnu.org>
Make release

View file

@ -142,7 +142,11 @@ static int gs_gif_output(GifFileType *file, const GifByteType *buffer, int len)
}
gs_gif_init_input_source(&src, imageData);
#if GIFLIB_MAJOR >= 5
file = DGifOpen(&src, gs_gif_input, NULL);
#else
file = DGifOpen(&src, gs_gif_input);
#endif
if (file == NULL)
{
/* we do not use giferror here because it doesn't