Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 338928 Details for
Bug 457640
kdelibs 4.10.0 fails with giflib-5
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix build against giflib 5
kdelibs-4.10.0-giflib5.patch (text/plain), 1.01 KB, created by
Andrew John Hughes
on 2013-02-15 02:13:09 UTC
(
hide
)
Description:
Fix build against giflib 5
Filename:
MIME Type:
Creator:
Andrew John Hughes
Created:
2013-02-15 02:13:09 UTC
Size:
1.01 KB
patch
obsolete
>--- khtml/imload/decoders/gifloader.cpp~ 2013-01-23 21:44:22.000000000 +0000 >+++ khtml/imload/decoders/gifloader.cpp 2013-02-15 00:47:22.395324905 +0000 >@@ -303,7 +303,11 @@ > static unsigned int decode16Bit(char* signedLoc) > { > unsigned char* loc = reinterpret_cast<unsigned char*>(signedLoc); >- >+ return decode16Bit(loc); >+ } >+ >+ static unsigned int decode16Bit(unsigned char* loc) >+ { > //GIFs are little-endian > return loc[0] | (((unsigned int)loc[1]) << 8); > } >@@ -348,10 +348,18 @@ > virtual int processEOF() > { > //Feed the buffered data to libUnGif >- GifFileType* file = DGifOpen(this, gifReaderBridge); >+#ifdef GIFLIB_MAJOR >= 5 >+ int error = 0; >+ GifFileType* file = DGifOpen(this, gifReaderBridge, &error); > >+ if (error) >+ return Error; >+#else >+ GifFileType* file = DGifOpen(this, gifReaderBridge); >+ > if (!file) > return Error; >+#endif > > if (DGifSlurp(file) == GIF_ERROR) > {
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 457640
: 338928