Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:cabelo:games
OpenSceneGraph
OpenSceneGraph-libgif6.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File OpenSceneGraph-libgif6.patch of Package OpenSceneGraph
diff -Naur OpenSceneGraph-3.0.1.orig/src/osgPlugins/gif/ReaderWriterGIF.cpp OpenSceneGraph-3.0.1/src/osgPlugins/gif/ReaderWriterGIF.cpp --- OpenSceneGraph-3.0.1.orig/src/osgPlugins/gif/ReaderWriterGIF.cpp 2011-05-05 14:39:35.000000000 +0200 +++ OpenSceneGraph-3.0.1/src/osgPlugins/gif/ReaderWriterGIF.cpp 2013-04-03 09:54:41.790388977 +0200 @@ -60,6 +60,11 @@ #define MY_GIF_DEBUG 1 +/* avoid cpp warning about undefined macro, old giflib had no GIFLIB_MAJOR */ +#ifndef GIFLIB_MAJOR +#define GIFLIB_MAJOR 4 +#endif + // GifImageStream class class GifImageStream : public osg::ImageStream, public OpenThreads::Thread { @@ -370,7 +375,12 @@ int interlacedoffset[] = { 0, 4, 2, 1 }; int interlacedjumps[] = { 8, 8, 4, 2 }; +#if GIFLIB_MAJOR >= 5 + int errorCode; + giffile = DGifOpen(&fin,gif_read_stream,&errorCode); +#else giffile = DGifOpen(&fin,gif_read_stream); +#endif if (!giffile) { giferror = ERR_OPEN;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor