changeset 10542:a5c3d9643077 icedtea-3.0.0pre03

PR2227: giflib 5.1 conditional excludes 6.0, 7.0, etc. Summary: Future-proof the giflib 5.1 support
author andrew
date Tue, 10 Feb 2015 16:24:28 +0000
parents aa1176aa5faf
children 3eab93411bc8
files src/share/native/sun/awt/splashscreen/splashscreen_gif.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/native/sun/awt/splashscreen/splashscreen_gif.c	Thu Feb 05 02:05:14 2015 +0000
+++ b/src/share/native/sun/awt/splashscreen/splashscreen_gif.c	Tue Feb 10 16:24:28 2015 +0000
@@ -310,7 +310,7 @@
     free(pBitmapBits);
     free(pOldBitmapBits);
 
-#if GIFLIB_MAJOR >= 5 && GIFLIB_MINOR >= 1
+#if GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1)
     if (DGifCloseFile(gif, NULL) == GIF_ERROR)
         return 0;
 #else