]>
Commit | Line | Data |
---|---|---|
b4d1c253 JB |
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 | |
3 | @@ -161,7 +161,11 @@ | |
4 | return NO; | |
5 | } | |
6 | ||
7 | +#if (GIFLIB_MAJOR > 5) || ((GIFLIB_MAJOR == 5) && (GIFLIB_MINOR >= 1)) | |
8 | + DGifCloseFile(file, NULL); | |
9 | +#else | |
10 | DGifCloseFile(file); | |
11 | +#endif | |
12 | return YES; | |
13 | } | |
14 | ||
15 | @@ -176,11 +180,17 @@ | |
16 | NSLog(@"%@", msg);\ | |
17 | } | |
18 | ||
19 | +#if (GIFLIB_MAJOR > 5) || ((GIFLIB_MAJOR == 5) && (GIFLIB_MINOR >= 1)) | |
20 | +# define GIF_CLOSE_FILE(file) DGifCloseFile(file, NULL) | |
21 | +#else | |
22 | +# define GIF_CLOSE_FILE(file) DGifCloseFile(file) | |
23 | +#endif | |
24 | + | |
25 | #define GIF_CREATE_ERROR(msg) \ | |
26 | SET_ERROR_MSG(msg); \ | |
27 | if (file != NULL) \ | |
28 | {\ | |
29 | - DGifCloseFile(file); \ | |
30 | + GIF_CLOSE_FILE(file); \ | |
31 | }\ | |
32 | if (imgBuffer != NULL) \ | |
33 | {\ | |
34 | @@ -392,7 +402,11 @@ | |
35 | withValue: [NSNumber numberWithInt: 0]]; | |
36 | ||
37 | /* don't forget to close the gif */ | |
38 | +#if (GIFLIB_MAJOR > 5) || ((GIFLIB_MAJOR == 5) && (GIFLIB_MINOR >= 1)) | |
39 | + DGifCloseFile(file, NULL); | |
40 | +#else | |
41 | DGifCloseFile(file); | |
42 | +#endif | |
43 | ||
44 | return self; | |
45 | } | |
46 | @@ -560,7 +574,11 @@ | |
47 | } | |
48 | GIFImageP += width; | |
49 | } | |
50 | +#if (GIFLIB_MAJOR > 5) || ((GIFLIB_MAJOR == 5) && (GIFLIB_MINOR >= 1)) | |
51 | + status = EGifCloseFile(GIFFile, NULL); | |
52 | +#else | |
53 | status = EGifCloseFile(GIFFile); | |
54 | +#endif | |
55 | ||
56 | free(GIFImage); | |
57 |