diff options
author | Slávek Banko <[email protected]> | 2015-12-20 12:59:02 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2015-12-20 12:59:20 +0100 |
commit | cbfc8a115af4cad55c15a2e3e3fe8691e74567dd (patch) | |
tree | 0ee78ac071946311c36e954ba335f7b11e847323 /kernel/kls_gif | |
parent | 44ada1e19e5ab531c223154ce5e523236f14c483 (diff) | |
download | libksquirrel-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.cpp | 8 |
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" |