changeset 4557:9a59860aaccb

G356743: Support building against libpng 1.5.
author andrew
date Wed, 03 Aug 2011 00:33:07 +0100
parents 0ee89fb1c10a
children f8c28c2f0a51
files src/share/native/sun/awt/splashscreen/splashscreen_png.c
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/native/sun/awt/splashscreen/splashscreen_png.c	Wed Aug 24 15:15:30 2011 +0200
+++ b/src/share/native/sun/awt/splashscreen/splashscreen_png.c	Wed Aug 03 00:33:07 2011 +0100
@@ -36,7 +36,7 @@
 {
     png_uint_32 check;
 
-    SplashStream * stream = (SplashStream*)png_ptr->io_ptr;
+    SplashStream * stream = (SplashStream*)png_get_io_ptr(png_ptr);
     check = stream->read(stream, data, length);
     if (check != length)
         png_error(png_ptr, "Read Error");
@@ -71,12 +71,11 @@
         goto done;
     }
 
-    if (setjmp(png_ptr->jmpbuf)) {
+    if (setjmp(png_jmpbuf(png_ptr))) {
         goto done;
     }
 
-    png_ptr->io_ptr = io_ptr;
-    png_ptr->read_data_fn = read_func;
+    png_set_read_fn(png_ptr, io_ptr, read_func);
 
     png_set_sig_bytes(png_ptr, SIG_BYTES);      /* we already read the 8 signature bytes */