Browse Source

Fix build with libpng-1.5

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/slim/trunk@185 7c53e7cc-98ea-0310-8f1f-a0b24da60408
iwamatsu 12 years ago
parent
commit
95b77244b3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      png.c

+ 1 - 1
png.c

@@ -59,7 +59,7 @@ read_png(const char *filename, int *width, int *height, unsigned char **rgb,
     }
 
 #if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4
-	if (setjmp(png_jmpbuf((data->png_ptr))))
+	if (setjmp(png_jmpbuf((png_ptr))))
 #else
     if (setjmp(png_ptr->jmpbuf))
 #endif