/hg/release/icedtea7-forest-2.4/jdk: PR1303: Support building wi...

andrew at icedtea.classpath.org andrew at icedtea.classpath.org
Thu Feb 14 16:09:25 PST 2013


changeset 5981cd14a7cf in /hg/release/icedtea7-forest-2.4/jdk
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.4/jdk?cmd=changeset;node=5981cd14a7cf
author: andrew
date: Thu Feb 14 23:55:06 2013 +0000

	PR1303: Support building with giflib 5


diffstat:

 src/share/native/sun/awt/splashscreen/splashscreen_gif.c |  9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diffs (22 lines):

diff -r 72a1b6322fc0 -r 5981cd14a7cf src/share/native/sun/awt/splashscreen/splashscreen_gif.c
--- a/src/share/native/sun/awt/splashscreen/splashscreen_gif.c	Thu Feb 14 08:58:40 2013 +0000
+++ b/src/share/native/sun/awt/splashscreen/splashscreen_gif.c	Thu Feb 14 23:55:06 2013 +0000
@@ -316,9 +316,18 @@
 int
 SplashDecodeGifStream(Splash * splash, SplashStream * stream)
 {
+#ifdef GIFLIB_MAJOR >= 5
+    int error = 0;
+    GifFileType *gif = DGifOpen((void *) stream, SplashStreamGifInputFunc, &error);
+
+    if (error)
+	return 0;
+#else
     GifFileType *gif = DGifOpen((void *) stream, SplashStreamGifInputFunc);
 
     if (!gif)
         return 0;
+#endif
+
     return SplashDecodeGif(splash, gif);
 }



More information about the distro-pkg-dev mailing list