aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorace20022 <ace20022@ymail.com>2016-01-04 22:05:34 +0100
committerace20022 <ace20022@ymail.com>2016-01-04 22:09:13 +0100
commit66761e8878c6c24aed68708c53a6d01798e18dc2 (patch)
tree083ea8f72ad324885286bd345ee11b150493c159
parentda994f69585c159c2c2ea3170b69c7b537380563 (diff)
[gif] Add more version #ifdefs.
-rw-r--r--xbmc/guilib/Gif.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/xbmc/guilib/Gif.cpp b/xbmc/guilib/Gif.cpp
index 160896f558..1e5792d82d 100644
--- a/xbmc/guilib/Gif.cpp
+++ b/xbmc/guilib/Gif.cpp
@@ -98,11 +98,13 @@ void Gif::Close(GifFileType* gif)
{
int err = 0;
int reason = 0;
-#if GIFLIB_MAJOR == 5
+#if GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1
err = m_dll.DGifCloseFile(gif, &reason);
#else
err = m_dll.DGifCloseFile(gif);
+#if GIFLIB_MAJOR < 5
reason = m_dll.GifLastError();
+#endif
if (err == GIF_ERROR)
free(gif);
#endif