From 04300740c30a1b7a704ecdb4fba721ecd915520f Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sat, 1 Aug 2009 20:15:58 +0000 Subject: make it compile git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@964 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/other/pngtopnm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'converter/other/pngtopnm.c') diff --git a/converter/other/pngtopnm.c b/converter/other/pngtopnm.c index 47e26437..ffb98ef7 100644 --- a/converter/other/pngtopnm.c +++ b/converter/other/pngtopnm.c @@ -20,6 +20,7 @@ # define PNMTOPNG_WARNING_LEVEL 0 /* use 0 for backward compatibility, */ #endif /* 2 for warnings (1 == error) */ +#include #include #include #include /* includes zlib.h and setjmp.h */ @@ -614,7 +615,7 @@ transColor(struct pngx * const pngxP) { int numTrans; png_color_16 * transColor; - assert(chunkIsPresent(PNG_INFO_tRNS)); + assert(pngx_chunkIsPresent(pngxP, PNG_INFO_tRNS)); png_get_tRNS(pngxP->png_ptr, pngxP->info_ptr, &trans, &numTrans, &transColor); @@ -636,7 +637,7 @@ isTransparentColor(pngcolor const color, -----------------------------------------------------------------------------*/ bool retval; - if (pngx_chunkIsPresent(PNG_INFO_tRNS)) { + if (pngx_chunkIsPresent(pngxP, PNG_INFO_tRNS)) { const png_color_16 * const transColorP = transColor(pngxP); /* It seems odd that libpng lets you get gamma-corrected pixel -- cgit 1.4.1