- fix building with giflib 5.1
[packages/evas.git] / evas-giflib.patch
1 --- evas-1.7.10/src/modules/loaders/gif/evas_image_load_gif.c~  2013-08-01 17:41:35.000000000 +0200
2 +++ evas-1.7.10/src/modules/loaders/gif/evas_image_load_gif.c   2014-11-10 08:09:51.040708649 +0100
3 @@ -338,7 +338,7 @@
4  
5     if (!cmap)
6       {
7 -        DGifCloseFile(gif);
8 +        DGifCloseFile(gif, NULL);
9          for (i = 0; i < scale_h; i++)
10            {
11               free(rows[i]);
12 @@ -725,7 +725,7 @@
13     if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE) ||
14         IMG_TOO_BIG(w, h))
15       {
16 -        DGifCloseFile(gif);
17 +        DGifCloseFile(gif, NULL);
18          if (IMG_TOO_BIG(w, h))
19            *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
20          else
21 @@ -740,7 +740,7 @@
22          if (DGifGetRecordType(gif, &rec) == GIF_ERROR)
23            {
24               /* PrintGifError(); */
25 -             DGifCloseFile(gif);
26 +             DGifCloseFile(gif, NULL);
27               *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
28               return EINA_FALSE;
29            }
30 @@ -754,7 +754,7 @@
31               if (DGifGetImageDesc(gif) == GIF_ERROR)
32                 {
33                    /* PrintGifError(); */
34 -                  DGifCloseFile(gif);
35 +                  DGifCloseFile(gif, NULL);
36                    *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
37                    return EINA_FALSE;
38                 }
39 @@ -762,7 +762,7 @@
40               if (DGifGetCode(gif, &img_code, &img) == GIF_ERROR)
41                 {
42                    /* PrintGifError(); */
43 -                  DGifCloseFile(gif);
44 +                  DGifCloseFile(gif, NULL);
45                    *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
46                    return EINA_FALSE;
47                 }
48 @@ -818,7 +818,7 @@
49          ie->frames = NULL;
50       }
51  
52 -   DGifCloseFile(gif);
53 +   DGifCloseFile(gif, NULL);
54     *error = EVAS_LOAD_ERROR_NONE;
55     return EINA_TRUE;
56  }
57 @@ -885,7 +885,7 @@
58       }
59  
60     ie->frames = eina_list_append(ie->frames, frame);
61 -   DGifCloseFile(gif);
62 +   DGifCloseFile(gif, NULL);
63     return EINA_TRUE;
64  }
65  
66 @@ -959,7 +959,7 @@
67                    *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
68                    return EINA_FALSE;
69                 }
70 -             DGifCloseFile(gif);
71 +             DGifCloseFile(gif, NULL);
72               *error = EVAS_LOAD_ERROR_NONE;
73               return EINA_TRUE;
74            }
75 @@ -1080,7 +1080,7 @@
76           }
77       } while (rec != TERMINATE_RECORD_TYPE);
78  
79 -   DGifCloseFile(gif);
80 +   DGifCloseFile(gif, NULL);
81     return duration;
82  }
83  
This page took 0.186679 seconds and 3 git commands to generate.