diff options
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/simpleviewer/files/patch-src_formats_formatgif.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/graphics/simpleviewer/files/patch-src_formats_formatgif.cpp b/graphics/simpleviewer/files/patch-src_formats_formatgif.cpp new file mode 100644 index 000000000000..046ba05d256e --- /dev/null +++ b/graphics/simpleviewer/files/patch-src_formats_formatgif.cpp @@ -0,0 +1,14 @@ +--- src/formats/formatgif.cpp.orig 2010-08-27 17:57:23 UTC ++++ src/formats/formatgif.cpp +@@ -22,7 +22,11 @@ bool CFormatGif::Load(const char* filena + } + fclose(m_file); + ++#if GIFLIB_MAJOR >= 5 ++ GifFileType* file = DGifOpenFileName(filename, NULL); ++#else + GifFileType* file = DGifOpenFileName(filename); ++#endif + if(file == 0) { + std::cout << "Error Opening GIF image" << std::endl; + return false; |