upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / libafterimage / repos / community-x86_64 / libafterimage-libpng15.patch
blob44d5b944007c93dd99aa191998b39badae5c6e8e
1 --- export.c
2 +++ export.c
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)) )
10 png_destroy_info_struct(png_ptr, (png_infopp) &info_ptr);
11 info_ptr = NULL ;
12 --- import.c
13 +++ import.c
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.
18 - if ( !setjmp (png_ptr->jmpbuf))
19 + if ( !setjmp (png_jmpbuf(png_ptr)))
21 ASFlagType rgb_flags = ASStorage_RLEDiffCompress|ASStorage_32Bit ;
23 @@ -1468,7 +1468,7 @@
25 static void asim_png_read_data(png_structp png_ptr, png_bytep data, png_size_t length)
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;