diff --git a/ChangeLog b/ChangeLog index 716ff533d..86b1fc0db 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-06-03 Riccardo Mottola + + * Source/NSBitmapImageRep+GIF.m + Add giflib 5.1 compatibility through macro. + 2014-05-30 Sebastian Reitenbach * Headers/AppKit/NSStatusItem.h * Source/NSStatusItem.m diff --git a/Source/NSBitmapImageRep+GIF.m b/Source/NSBitmapImageRep+GIF.m index e2a04e5a5..19062a879 100644 --- a/Source/NSBitmapImageRep+GIF.m +++ b/Source/NSBitmapImageRep+GIF.m @@ -2,7 +2,7 @@ Methods for reading GIF images - Copyright (C) 2003, 2004 Free Software Foundation, Inc. + Copyright (C) 2003-2014 Free Software Foundation, Inc. Written by: Stefan Kleine Stegemann Date: Nov 2003 @@ -56,6 +56,11 @@ objective-c headers. #define FALSE 0 #endif /* FALSE */ +// GIF 5.1 +#if GIFLIB_MAJOR >= 5 && GIFLIB_MINOR >= 1 + #define DGifCloseFile(f) DGifCloseFile(f, NULL) +#endif + /* ----------------------------------------------------------- The following types and functions are for interacting with the gif library.