{
bool result = false;
-#if GIFLIB_MAJOR > 5
+#if GIFLIB_MAJOR >= 5
GifFileType * gifFile = DGifOpen(f, ReadData, null);
#else
GifFileType * gifFile = DGifOpen(f, ReadData);
result = true;
}
}
+#if GIFLIB_MAJOR >= 5
+ DGifCloseFile(gifFile, null);
+#else
DGifCloseFile(gifFile);
+#endif
}
if(!result)