Index: src/images/SkMovie_gif.cpp |
diff --git a/src/images/SkMovie_gif.cpp b/src/images/SkMovie_gif.cpp |
index 3810db566275feb7ed777f02a7e028055d9a8f4f..40e5520def6ef0d23d95b06b60798b1be68a7395 100644 |
--- a/src/images/SkMovie_gif.cpp |
+++ b/src/images/SkMovie_gif.cpp |
@@ -16,6 +16,10 @@ |
#include "gif_lib.h" |
+#if GIFLIB_MAJOR < 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR == 0) |
+#define DGifCloseFile(a, b) DGifCloseFile(a) |
+#endif |
+ |
class SkGIFMovie : public SkMovie { |
public: |
SkGIFMovie(SkStream* stream); |
@@ -50,7 +54,7 @@ SkGIFMovie::SkGIFMovie(SkStream* stream) |
if (DGifSlurp(fGIF) != GIF_OK) |
{ |
- DGifCloseFile(fGIF); |
+ DGifCloseFile(fGIF, NULL); |
fGIF = NULL; |
} |
fCurrIndex = -1; |
@@ -60,7 +64,7 @@ SkGIFMovie::SkGIFMovie(SkStream* stream) |
SkGIFMovie::~SkGIFMovie() |
{ |
if (fGIF) |
- DGifCloseFile(fGIF); |
+ DGifCloseFile(fGIF, NULL); |
} |
static SkMSec savedimage_duration(const SavedImage* image) |