wrlib: add support for release 5.1.0 of the libgif
commit7d09b2c04f99c25c6b02a93b8e12533312cc8bac
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 25 Oct 2014 22:31:43 +0000 (26 00:31 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 2 Nov 2014 12:08:59 +0000 (2 13:08 +0100)
treedecbe09f0887142ee28f1e9f734cd4e3d6453fd6
parent3de5b8fb427f63bb822234a4712d52d876f352da
wrlib: add support for release 5.1.0 of the libgif

As reported by Andrew, the compilation of the WRaster broke because
there was an API change in libgif v5.1 versus the v5.0 (something had been
forgotten for DGifCloseFile to be easily used in wrappers for dynamic
languages).

Now, if we have detected that we're in 5.x release, we use the GIFLIB_MINOR
macro to see what the function prototype is (this macro was introduced only
in 4.1.6 so we cannot fully rely on it to detect the version of the
library).

The possible error code is not used because at the place we use the
function we would not be able do do anything more meaningful with it.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
wrlib/load_gif.c