mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 18:01:06 +02:00
pictureviewer: compatibility with giflib-5.x
Origin commit data
------------------
Branch: ni/coolstream
Commit: 2c07e391a1
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-12-28 (Fri, 28 Dec 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -59,8 +59,13 @@ int fh_gif_load(const char *name,unsigned char **buffer,int* /*xp*/,int* /*yp*/)
|
|||||||
GifRecordType rt;
|
GifRecordType rt;
|
||||||
ColorMapObject *cmap;
|
ColorMapObject *cmap;
|
||||||
int cmaps;
|
int cmaps;
|
||||||
|
#if GIFLIB_MAJOR >= 5
|
||||||
|
int error;
|
||||||
|
|
||||||
|
gft=DGifOpenFileName(name, &error);
|
||||||
|
#else
|
||||||
gft=DGifOpenFileName(name);
|
gft=DGifOpenFileName(name);
|
||||||
|
#endif
|
||||||
if(gft==NULL) gflush;
|
if(gft==NULL) gflush;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
@@ -128,8 +133,13 @@ int fh_gif_getsize(const char *name,int *x,int *y, int /*wanted_width*/, int /*w
|
|||||||
GifByteType *extension;
|
GifByteType *extension;
|
||||||
int extcode;
|
int extcode;
|
||||||
GifRecordType rt;
|
GifRecordType rt;
|
||||||
|
#if GIFLIB_MAJOR >= 5
|
||||||
|
int error;
|
||||||
|
|
||||||
|
gft=DGifOpenFileName(name, &error);
|
||||||
|
#else
|
||||||
gft=DGifOpenFileName(name);
|
gft=DGifOpenFileName(name);
|
||||||
|
#endif
|
||||||
if(gft==NULL) gflush;
|
if(gft==NULL) gflush;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user