]> git.pld-linux.org Git - packages/gdal.git/blob - gdal-libpng.patch
d4cfdf16e219b9072d22cd44b60aa538f0c28f05
[packages/gdal.git] / gdal-libpng.patch
1 --- gdal-1.8.0/frmts/png/pngdataset.cpp.orig    2011-01-14 06:19:04.000000000 +0100
2 +++ gdal-1.8.0/frmts/png/pngdataset.cpp 2012-01-16 19:36:37.513649497 +0100
3 @@ -1315,7 +1315,7 @@
4      * instead of an int, which is what fread() actually returns.
5      */
6     check = (png_size_t)VSIFReadL(data, (png_size_t)1, length,
7 -                                 (VSILFILE*)png_ptr->io_ptr);
8 +                                 (VSILFILE*)png_get_io_ptr(png_ptr));
9  
10     if (check != length)
11        png_error(png_ptr, "Read Error");
12 @@ -1330,7 +1330,7 @@
13  {
14     png_uint_32 check;
15  
16 -   check = VSIFWriteL(data, 1, length, (VSILFILE*)(png_ptr->io_ptr));
17 +   check = VSIFWriteL(data, 1, length, (VSILFILE*)png_get_io_ptr(png_ptr));
18  
19     if (check != length)
20        png_error(png_ptr, "Write Error");
21 @@ -1341,7 +1341,7 @@
22  /************************************************************************/
23  static void png_vsi_flush(png_structp png_ptr)
24  {
25 -    VSIFFlushL( (VSILFILE*)(png_ptr->io_ptr) );
26 +    VSIFFlushL( (VSILFILE*)png_get_io_ptr(png_ptr) );
27  }
28  
29  /************************************************************************/
30 @@ -1357,7 +1357,7 @@
31      // libpng is generally not built as C++ and so won't honour unwind
32      // semantics.  Ugg. 
33  
34 -    jmp_buf* psSetJmpContext = (jmp_buf*) png_ptr->error_ptr;
35 +    jmp_buf* psSetJmpContext = (jmp_buf*) png_get_error_ptr(png_ptr);
36      if (psSetJmpContext)
37      {
38          longjmp( *psSetJmpContext, 1 );
This page took 0.022189 seconds and 2 git commands to generate.