1 --- gnustep-gui-0.24.0/Source/NSBitmapImageRep+GIF.m.orig 2013-11-24 12:56:33.000000000 +0100
2 +++ gnustep-gui-0.24.0/Source/NSBitmapImageRep+GIF.m 2014-07-26 09:06:35.620852420 +0200
7 +#if (GIFLIB_MAJOR > 5) || ((GIFLIB_MAJOR == 5) && (GIFLIB_MINOR >= 1))
8 + DGifCloseFile(file, NULL);
19 +#if (GIFLIB_MAJOR > 5) || ((GIFLIB_MAJOR == 5) && (GIFLIB_MINOR >= 1))
20 +# define GIF_CLOSE_FILE(file) DGifCloseFile(file, NULL)
22 +# define GIF_CLOSE_FILE(file) DGifCloseFile(file)
25 #define GIF_CREATE_ERROR(msg) \
29 - DGifCloseFile(file); \
30 + GIF_CLOSE_FILE(file); \
32 if (imgBuffer != NULL) \
35 withValue: [NSNumber numberWithInt: 0]];
37 /* don't forget to close the gif */
38 +#if (GIFLIB_MAJOR > 5) || ((GIFLIB_MAJOR == 5) && (GIFLIB_MINOR >= 1))
39 + DGifCloseFile(file, NULL);
50 +#if (GIFLIB_MAJOR > 5) || ((GIFLIB_MAJOR == 5) && (GIFLIB_MINOR >= 1))
51 + status = EGifCloseFile(GIFFile, NULL);
53 status = EGifCloseFile(GIFFile);