We need the ifdef
void
GIFInput::report_last_error (void)
{
#if GIFLIB_MAJOR >= 5
error (GifErrorString (m_gif_file->Error));
#else
GifLastError();
#endif
}
On Wed, Oct 9, 2013 at 7:46 PM, Larry Gritz <[email protected]> wrote:
> Will GifLastError() work for both libgif 4.1 as well as 5? Or do we need
> some kind of #ifdef switch?
>
>
> On Oct 9, 2013, at 3:03 AM, Ben De Luca wrote:
>
> > Hey,
> > trying to compile oiio against libgiff 4.1 ( system provided)
> >
> > compilation fails like
> > /mnt/homes/bdeluca/src/oiio/oiio/src/gif.imageio/gifinput.cpp: In member
> function ‘void OpenImageIO::v1_3::GIFInput::report_last_error()’:
> > /mnt/homes/bdeluca/src/oiio/oiio/src/gif.imageio/gifinput.cpp:476:27:
> error: ‘GifErrorString’ was not declared in this scope
> >
> >
> > GifErrorString seems to be part of libgiff 5
> >
> > changing it too
> > GifLastError();
> > probably does some thing closer to what we want.
> >
> >
>
> --
> Larry Gritz
> [email protected]
>
>
> _______________________________________________
> Oiio-dev mailing list
> [email protected]
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org