Wrong version macros for libPNG in frmts/pngdataset.cpp
In frmts/pngdataset.cpp, LIBPNG_VER_MINOR and LIBPNG_VER_MAJOR are being watched to perform code secific to a version of libPNG. But at least in libpng 1.6, 1.5, and even in the 1.2 shipped with gdal, those macros are actually named PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR. This causes some additional info to not be displayed in the following error messsage, because the code thinks this libpng doesn't have the function png_access_version_number()
Change History
(3)
Component: |
default → GDAL_Raster
|
Keywords: |
png added
|
Milestone: |
→ 2.0
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Fixed in trunk (r26338)