hasufell-repository/packages/dev-games/OpenSceneGraph/files/OpenSceneGraph-3.2.1-giflib5-part1.patch
Timo Gurr 062c545c2b
OpenSceneGraph: use slots, build with giflib5, restrict jpeg dep
Change-Id: Ica7f63bc2d6e97130d36817d57c198a331c97a4c
2016-05-22 13:00:07 +02:00

31 lines
1.0 KiB
Diff

Source: https://github.com/openscenegraph/osg/commit/afb442fccd182cfe8608f43394af016f6723f97a
Upstream: Fixed in trunk
Reason: Fix build with giflib 5.0
From afb442fccd182cfe8608f43394af016f6723f97a Mon Sep 17 00:00:00 2001
From: Robert OSFIELD <robert.osfield@gmail.com>
Date: Wed, 19 Nov 2014 17:10:21 +0000
Subject: [PATCH] From Clement Boesch, "Fix remaining bit of Giflib5 usage"
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14485 16af8721-9629-0410-8352-f15c8da7e697
---
src/osgPlugins/gif/ReaderWriterGIF.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/osgPlugins/gif/ReaderWriterGIF.cpp b/src/osgPlugins/gif/ReaderWriterGIF.cpp
index 4b5cd22..12f46e1 100644
--- a/src/osgPlugins/gif/ReaderWriterGIF.cpp
+++ b/src/osgPlugins/gif/ReaderWriterGIF.cpp
@@ -560,7 +560,11 @@ GifImageStream** obj)
*width_ret = giffile->SWidth;
*height_ret = giffile->SHeight;
*numComponents_ret = 4;
+#if (GIFLIB_MAJOR >= 5)
+ DGifCloseFile(giffile, &Error);
+#else
DGifCloseFile(giffile);
+#endif
return buffer;
}