diff --git a/ChangeLog b/ChangeLog index 3966dafda..9fd52491d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-04-03 Fred Kiefer + + * Source/NSBitmapImageRep+GIF.m (-_bitmapIsGIF:): Prepare for + additional argument to function DGifOpen in newer libgif versions. + 2013-03-28 Richard Frith-Macdonald Make release diff --git a/Source/NSBitmapImageRep+GIF.m b/Source/NSBitmapImageRep+GIF.m index 64831cd96..a4eaa2c93 100644 --- a/Source/NSBitmapImageRep+GIF.m +++ b/Source/NSBitmapImageRep+GIF.m @@ -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