Allow building with giflib >= 5.2

This commit is contained in:
Antoine Brodin 2019-11-10 17:03:17 +00:00
parent 001a7a1252
commit a2be68fb13
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=517218

View file

@ -0,0 +1,11 @@
--- libbase/GnashImageGif.cpp.orig 2016-07-21 12:25:09 UTC
+++ libbase/GnashImageGif.cpp
@@ -120,7 +120,7 @@ GifInput::GifInput(std::shared_ptr<IOCha
GifInput::~GifInput()
{
// Clean up allocated data.
-#if GIFLIB_MAJOR==5 && GIFLIB_MINOR==1
+#if GIFLIB_MAJOR==5 && GIFLIB_MINOR>=1
DGifCloseFile(_gif, 0);
#else
DGifCloseFile(_gif);