diff options
author | Andrew Savchenko <bircoph@gentoo.org> | 2016-05-08 10:21:08 +0300 |
---|---|---|
committer | Andrew Savchenko <bircoph@gentoo.org> | 2016-05-08 10:21:08 +0300 |
commit | bc04ac3d16115fd75cfa89b3907bec80c3499359 (patch) | |
tree | a3c584d4b65eecee4a294cd103bed086b3a75378 /media-libs | |
parent | app-admin/sshguard: Old. (diff) | |
download | gentoo-bc04ac3d16115fd75cfa89b3907bec80c3499359.tar.gz gentoo-bc04ac3d16115fd75cfa89b3907bec80c3499359.tar.bz2 gentoo-bc04ac3d16115fd75cfa89b3907bec80c3499359.zip |
media-libs/libafterimage: fix bug 582308
libjpeg provides some macro that were removed in >=giflib-5, so
with USE="gif -jpeg" and >=giflib-5 we had undefined TRUE and
FALSE.
Package-Manager: portage-2.2.28
Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/libafterimage/files/libafterimage-giflib5.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/media-libs/libafterimage/files/libafterimage-giflib5.patch b/media-libs/libafterimage/files/libafterimage-giflib5.patch index 32037d97546d..b650b248dd0f 100644 --- a/media-libs/libafterimage/files/libafterimage-giflib5.patch +++ b/media-libs/libafterimage/files/libafterimage-giflib5.patch @@ -117,7 +117,7 @@ diff -Naurd libAfterImage-1.20.orig/export.c libAfterImage-1.20/export.c } +#if (GIFLIB_MAJOR>=5) -+ if( (errcode = EGifPutImageDesc(gif, 0, 0, im->width, im->height, FALSE, (dont_save_cmap)?NULL:gif_cmap )) == GIF_ERROR ) ++ if( (errcode = EGifPutImageDesc(gif, 0, 0, im->width, im->height, false, (dont_save_cmap)?NULL:gif_cmap )) == GIF_ERROR ) + ASIM_PrintGifError(errcode); +#else if( EGifPutImageDesc(gif, 0, 0, im->width, im->height, FALSE, (dont_save_cmap)?NULL:gif_cmap ) == GIF_ERROR ) @@ -155,7 +155,7 @@ diff -Naurd libAfterImage-1.20.orig/export.c libAfterImage-1.20/export.c EGifPutExtension(gif, 0xf9, GIF_GCE_BYTES, &(gce_bytes[0])); +#if (GIFLIB_MAJOR>=5) -+ if( (errcode = EGifPutImageDesc(gif, 0, 0, im->width, im->height, FALSE, NULL )) == GIF_ERROR ) ++ if( (errcode = EGifPutImageDesc(gif, 0, 0, im->width, im->height, false, NULL )) == GIF_ERROR ) + ASIM_PrintGifError(errcode); +#else if( EGifPutImageDesc(gif, 0, 0, im->width, im->height, FALSE, NULL ) == GIF_ERROR ) |