fix build against libpng-1.5.x versions.
authorOzkan Sezer <sezeroz@gmail.com>
Sat, 13 Oct 2018 15:02:56 +0300
changeset 5964b70bfe18fb7
parent 595 ed8961044eba
child 600 e993208756e6
fix build against libpng-1.5.x versions.
IMG_png.c
     1.1 --- a/IMG_png.c	Thu Oct 11 21:54:44 2018 -0700
     1.2 +++ b/IMG_png.c	Sat Oct 13 15:02:56 2018 +0300
     1.3 @@ -74,13 +74,13 @@
     1.4  #if (PNG_LIBPNG_VER_MINOR < 5)
     1.5  #define LIBPNG_VERSION_12
     1.6  typedef png_bytep png_const_bytep;
     1.7 +typedef png_color *png_const_colorp;
     1.8  #endif
     1.9  #if (PNG_LIBPNG_VER_MINOR < 6)
    1.10  typedef png_structp png_const_structrp;
    1.11  typedef png_infop png_const_inforp;
    1.12  typedef png_structp png_structrp;
    1.13  typedef png_infop png_inforp;
    1.14 -typedef const png_color * png_const_colorp;
    1.15  #endif
    1.16  #endif
    1.17