Use older const png_bytep instead of png_const_bytep
Jeffrey Pfau jeffrey@endrift.com
Fri, 15 Aug 2014 01:54:13 -0700
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/util/png-io.c
→
src/util/png-io.c
@@ -74,7 +74,7 @@ realName[4] = '\0';
if (setjmp(png_jmpbuf(png))) { return false; } - png_write_chunk(png, (png_const_bytep) realName, data, size); + png_write_chunk(png, (const png_bytep) realName, data, size); return true; }@@ -110,7 +110,7 @@ if (setjmp(png_jmpbuf(png))) {
return false; } png_set_read_user_chunk_fn(png, context, handler); - png_set_keep_unknown_chunks(png, PNG_HANDLE_CHUNK_ALWAYS, (png_const_bytep) chunkName, 1); + png_set_keep_unknown_chunks(png, PNG_HANDLE_CHUNK_ALWAYS, (const png_bytep) chunkName, 1); return true; }