head 1.2; access; symbols pkgsrc-2014Q3:1.1.0.4 pkgsrc-2014Q3-base:1.1 pkgsrc-2014Q2:1.1.0.2 pkgsrc-2014Q2-base:1.1; locks; strict; comment @// @; 1.2 date 2014.10.10.01.13.58; author wen; state dead; branches; next 1.1; commitid 5VS0S7uvfhQ6LATx; 1.1 date 2014.05.23.13.04.10; author obache; state Exp; branches; next ; commitid JhpWl2skkyU1cFBx; desc @@ 1.2 log @Update to 1.11.1 Upstream changes please visit: http://trac.osgeo.org/gdal/wiki/Release/1.11.1-News Reviewed by: wiz@@ @ text @$NetBSD: patch-frmts_gif_biggifdataset.cpp,v 1.1 2014/05/23 13:04:10 obache Exp $ * giflib>=5.1 API change --- frmts/gif/biggifdataset.cpp.orig 2012-10-09 00:58:25.000000000 +0000 +++ frmts/gif/biggifdataset.cpp @@@@ -337,7 +337,12 @@@@ CPLErr BIGGIFDataset::ReOpen() /* If the file is already open, close it so we can restart. */ /* -------------------------------------------------------------------- */ if( hGifFile != NULL ) +#if defined(GIFLIB_MAJOR) && defined(GIFLIB_MINOR) && \ + (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1 || GIFLIB_MAJOR > 5) + DGifCloseFile( hGifFile, NULL ); +#else DGifCloseFile( hGifFile ); +#endif /* -------------------------------------------------------------------- */ /* If we are actually reopening, then we assume that access to */ @@@@ -411,7 +416,12 @@@@ CPLErr BIGGIFDataset::ReOpen() if( RecordType != IMAGE_DESC_RECORD_TYPE ) { +#if defined(GIFLIB_MAJOR) && defined(GIFLIB_MINOR) && \ + (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1 || GIFLIB_MAJOR > 5) + DGifCloseFile( hGifFile, NULL ); +#else DGifCloseFile( hGifFile ); +#endif hGifFile = NULL; CPLError( CE_Failure, CPLE_OpenFailed, @@@@ -421,7 +431,12 @@@@ CPLErr BIGGIFDataset::ReOpen() if (DGifGetImageDesc(hGifFile) == GIF_ERROR) { +#if defined(GIFLIB_MAJOR) && defined(GIFLIB_MINOR) && \ + (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1 || GIFLIB_MAJOR > 5) + DGifCloseFile( hGifFile, NULL ); +#else DGifCloseFile( hGifFile ); +#endif hGifFile = NULL; CPLError( CE_Failure, CPLE_OpenFailed, @ 1.1 log @Fixes build with giflib>=5.1. @ text @d1 1 a1 1 $NetBSD$ @