Origin: $NetBSD: patch-src_libimage_gif.c,v 1.4 2019/11/16 17:36:28 ng0 Exp $ Modified by: R Veera Kumar 2020-03-28; change to patch -p1 diff -uNr xplanet-1.3.1/src/libimage/gif.c xplanet-1.3.1.new/src/libimage/gif.c --- xplanet-1.3.1/src/libimage/gif.c 2013-02-17 01:07:47.000000000 +0530 +++ xplanet-1.3.1.new/src/libimage/gif.c 2020-03-28 22:15:24.444309199 +0530 @@ -21,7 +21,7 @@ #include #include #include - +#include #include /* @@ -178,8 +178,12 @@ *BufferP++ = ColorMapEntry->Blue; } } - + +#if GIFLIB_MAJOR >= 5 + if (DGifCloseFile(GifFile, NULL) == GIF_ERROR) { +#else if (DGifCloseFile(GifFile) == GIF_ERROR) { +#endif return(0); } @@ -493,7 +497,11 @@ static void QuitGifError(GifFileType *GifFile) { fprintf(stderr, "Error writing GIF file\n"); +#if GIFLIB_MAJOR >= 5 + if (GifFile != NULL) EGifCloseFile(GifFile, NULL); +#else if (GifFile != NULL) EGifCloseFile(GifFile); +#endif } int @@ -589,7 +597,11 @@ Ptr += width; } +#if GIFLIB_MAJOR >= 5 + if (EGifCloseFile(GifFile, NULL) == GIF_ERROR) +#else if (EGifCloseFile(GifFile) == GIF_ERROR) +#endif { QuitGifError(GifFile); ages/notcurses.scm?id=e0503ac6078012a5e190dbfb507af1982a36c965'>treecommitdiff
AgeCommit message (Expand)Author
2024-10-22gnu: notcurses: Update to 3.0.11....* gnu/packages/notcurses.scm (notcurses): Update to 3.0.11. Change-Id: Ib182956e8f847ee94597ada8b12e8b6acf9de16f Signed-off-by: Ludovic Courtès <ludo@gnu.org> kiasoc5
2024-09-08Add some missing header comment header comments....* gnu/packages/minetest.scm: Add the ‘GNU Guix’ header comment. * gnu/packages/notcurses.scm: Likewise. * gnu/packages/presentation.scm: Likewise. * gnu/packages/solidity.scm: Likewise. * guix/build/minetest-build-system.scm: Likewise. * gnu/packages/vnc.scm: Add missing ‘;’. * guix/scripts/import/crate.scm: Remove leading newline. Change-Id: I5294e6067b9348f2929d823a07d4ec335eaa5ecd Tobias Geerinckx-Rice