Opened 13 years ago

Closed 13 years ago

#3914 closed defect (fixed)

libpng 1.5.0 compat : remove direct use of members of png_struct_def

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 1.8.1
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords: png
Cc: ben@…

Description

Since libpng 1.5.0, the png_struct_def is an opaque type and applications should use appropriate getters to avoid compilation errors.

This affects the error_fn and io_ptr members that GDAL uses. They should be replaced by png_get_error_ptr() and png_get_io_ptr(), that exist since libpng 1.0 (at least), so this is safe to use them unconditionaly.

Change History (2)

comment:1 by Even Rouault, 13 years ago

Fixed in trunk (r21525) and branches/1.8 (r21526)

comment:2 by Even Rouault, 13 years ago

Milestone: 1.8.1
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.