Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 403038 Details for
Bug 538948
media-libs/imlib2-1.4.6-r2 with media-libs/giflib-5.1.1 - .../work/imlib-1.9.15/Imlib/load.c:457:3: error: too few arguments to function ‘DGifOpenFileHandle’
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
imlib2-fix_compilation_with_giflib-5.1.x.patch
imlib2-fix_compilation_with_giflib-5.1.x.patch (text/plain), 2.81 KB, created by
Paolo Pedroni
on 2015-05-11 13:45:54 UTC
(
hide
)
Description:
imlib2-fix_compilation_with_giflib-5.1.x.patch
Filename:
MIME Type:
Creator:
Paolo Pedroni
Created:
2015-05-11 13:45:54 UTC
Size:
2.81 KB
patch
obsolete
>--- a/src/modules/loaders/loader_gif.c >+++ b/src/modules/loaders/loader_gif.c >@@ -60,13 +60,21 @@ > h = gif->Image.Height; > if (!IMAGE_DIMENSIONS_OK(w, h)) > { >- DGifCloseFile(gif); >+ #if GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1) >+ DGifCloseFile(gif, NULL); >+ #else >+ DGifCloseFile(gif); >+ #endif > return 0; > } > rows = malloc(h * sizeof(GifRowType *)); > if (!rows) > { >- DGifCloseFile(gif); >+ #if GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1) >+ DGifCloseFile(gif, NULL); >+ #else >+ DGifCloseFile(gif); >+ #endif > return 0; > } > for (i = 0; i < h; i++) >@@ -78,7 +86,11 @@ > rows[i] = malloc(w * sizeof(GifPixelType)); > if (!rows[i]) > { >- DGifCloseFile(gif); >+ #if GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1) >+ DGifCloseFile(gif, NULL); >+ #else >+ DGifCloseFile(gif); >+ #endif > for (i = 0; i < h; i++) > { > if (rows[i]) >@@ -150,7 +162,11 @@ > im->data = (DATA32 *) malloc(sizeof(DATA32) * w * h); > if (!im->data) > { >- DGifCloseFile(gif); >+ #if GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1) >+ DGifCloseFile(gif, NULL); >+ #else >+ DGifCloseFile(gif); >+ #endif > free(rows); > return 0; > } >@@ -181,7 +197,11 @@ > last_per = (int)per; > if (!(progress(im, (int)per, 0, last_y, w, i))) > { >- DGifCloseFile(gif); >+ #if GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1) >+ DGifCloseFile(gif, NULL); >+ #else >+ DGifCloseFile(gif); >+ #endif > for (i = 0; i < h; i++) > { > free(rows[i]); >@@ -198,7 +218,11 @@ > { > progress(im, 100, 0, last_y, w, h); > } >- DGifCloseFile(gif); >+ #if GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1) >+ DGifCloseFile(gif, NULL); >+ #else >+ DGifCloseFile(gif); >+ #endif > for (i = 0; i < h; i++) > { > free(rows[i]);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 538948
: 403038