summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Savchenko <bircoph@gentoo.org>2016-05-08 10:21:08 +0300
committerAndrew Savchenko <bircoph@gentoo.org>2016-05-08 10:21:08 +0300
commitbc04ac3d16115fd75cfa89b3907bec80c3499359 (patch)
treea3c584d4b65eecee4a294cd103bed086b3a75378 /media-libs/libafterimage/files
parentapp-admin/sshguard: Old. (diff)
downloadgentoo-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/libafterimage/files')
-rw-r--r--media-libs/libafterimage/files/libafterimage-giflib5.patch4
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 )