From 0c052ce2ed78bd5bcd0d8a4c1600c7228817ea3e Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 20 Nov 2014 09:21:48 +0000 Subject: [PATCH] From Pjotr Svetachov, fix for build breakage with giflib 5.0. git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/branches/OpenSceneGraph-3.2@14492 16af8721-9629-0410-8352-f15c8da7e697 --- src/osgPlugins/gif/ReaderWriterGIF.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgPlugins/gif/ReaderWriterGIF.cpp b/src/osgPlugins/gif/ReaderWriterGIF.cpp index ac89f8eda..1df8d6ce7 100644 --- a/src/osgPlugins/gif/ReaderWriterGIF.cpp +++ b/src/osgPlugins/gif/ReaderWriterGIF.cpp @@ -561,7 +561,7 @@ GifImageStream** obj) *width_ret = giffile->SWidth; *height_ret = giffile->SHeight; *numComponents_ret = 4; -#if (GIFLIB_MAJOR >= 5) +#if (GIFLIB_MAJOR >= 5&& !(GIFLIB_MAJOR == 5 && GIFLIB_MINOR == 0)) DGifCloseFile(giffile, &Error); #else DGifCloseFile(giffile);