media-libs/libafterimage: fix bug 582308
authorAndrew Savchenko <bircoph@gentoo.org>
Sun, 8 May 2016 07:21:08 +0000 (10:21 +0300)
committerAndrew Savchenko <bircoph@gentoo.org>
Sun, 8 May 2016 07:21:08 +0000 (10:21 +0300)
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>
media-libs/libafterimage/files/libafterimage-giflib5.patch

index 32037d97546dce82ec85164ef884835b9e2f06ab..b650b248dd0f0bcd973c406a0645562d118cce5a 100644 (file)
@@ -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 )