summaryrefslogtreecommitdiffstats
path: root/kernel/kls_gif
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2015-12-20 12:59:02 +0100
committerSlávek Banko <[email protected]>2015-12-20 12:59:20 +0100
commitcbfc8a115af4cad55c15a2e3e3fe8691e74567dd (patch)
tree0ee78ac071946311c36e954ba335f7b11e847323 /kernel/kls_gif
parent44ada1e19e5ab531c223154ce5e523236f14c483 (diff)
downloadlibksquirrel-cbfc8a115af4cad55c15a2e3e3fe8691e74567dd.tar.gz
libksquirrel-cbfc8a115af4cad55c15a2e3e3fe8691e74567dd.zip
Add support giflib 5.1r14.0.3
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 1becbbdcacf2ddab3eda4a23aada29dbe16f15b0)
Diffstat (limited to 'kernel/kls_gif')
-rw-r--r--kernel/kls_gif/fmt_codec_gif.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/kernel/kls_gif/fmt_codec_gif.cpp b/kernel/kls_gif/fmt_codec_gif.cpp
index 33d13e7..ad21d94 100644
--- a/kernel/kls_gif/fmt_codec_gif.cpp
+++ b/kernel/kls_gif/fmt_codec_gif.cpp
@@ -567,7 +567,13 @@ void fmt_codec::read_close()
finfo.meta.clear();
finfo.image.clear();
- if(gif) DGifCloseFile(gif);
+ if(gif) {
+#if defined(GIFLIB_MAJOR) && (GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1))
+ DGifCloseFile(gif, NULL);
+#else
+ DGifCloseFile(gif);
+#endif
+ }
}
#include "fmt_codec_cd_func.h"