png_helper.cpp : line # 77
Status: Alpha
Brought to you by:
tulrich
As of PNG 1.5 png_struct_def has become an opaque structure and accessing it using the latest PNG libraries requires changing the line to
void write_data(png_structp png_ptr, png_bytep data, png_size_t length)
{
fwrite(data, length, 1, (FILE*) png_get_io_ptr(png_ptr));
}
This is supported since PNG 1.0
Reference : http://trac.osgeo.org/gdal/ticket/3914