/[packages]/cauldron/AfterStep/current/SOURCES/AfterStep-2.2.11-libpng15.patch
ViewVC logotype

Contents of /cauldron/AfterStep/current/SOURCES/AfterStep-2.2.11-libpng15.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 145922 - (show annotations) (download)
Tue Sep 20 04:21:41 2011 UTC (12 years, 6 months ago) by fwang
File size: 1290 byte(s)
fix build with latest libpng
1 --- libAfterImage/export.c.libpng 2011-09-20 06:16:36.000000000 +0200
2 +++ libAfterImage/export.c 2011-09-20 06:16:56.000000000 +0200
3 @@ -496,7 +496,7 @@
4 png_ptr = png_create_write_struct( PNG_LIBPNG_VER_STRING, NULL, NULL, NULL );
5 if ( png_ptr != NULL )
6 if( (info_ptr = png_create_info_struct(png_ptr)) != NULL )
7 - if( setjmp(png_ptr->jmpbuf) )
8 + if( setjmp(png_jmpbuf(png_ptr)) )
9 {
10 png_destroy_info_struct(png_ptr, (png_infopp) &info_ptr);
11 info_ptr = NULL ;
12 --- libAfterImage/import.c.libpng 2011-09-20 06:17:31.000000000 +0200
13 +++ libAfterImage/import.c 2011-09-20 06:18:35.000000000 +0200
14 @@ -1251,7 +1251,7 @@
15 * the normal method of doing things with libpng). REQUIRED unless you
16 * set up your own error handlers in the png_create_read_struct() earlier.
17 */
18 - if ( !setjmp (png_ptr->jmpbuf))
19 + if ( !setjmp (png_jmpbuf(png_ptr)))
20 {
21 ASFlagType rgb_flags = ASStorage_RLEDiffCompress|ASStorage_32Bit ;
22
23 @@ -1468,7 +1468,7 @@
24
25 static void asim_png_read_data(png_structp png_ptr, png_bytep data, png_size_t length)
26 {
27 - ASImPNGReadBuffer *buf = (ASImPNGReadBuffer *)png_ptr->io_ptr;
28 + ASImPNGReadBuffer *buf = (ASImPNGReadBuffer *)png_get_io_ptr(png_ptr);
29 memcpy(data, buf->buffer, length);
30 buf->buffer += length;
31 }

  ViewVC Help
Powered by ViewVC 1.1.30