all repos — mgba @ 61c410154f5d71731271287f4aae73bb8ed4f60f

mGBA Game Boy Advance Emulator

Use older const png_bytep instead of png_const_bytep
Jeffrey Pfau jeffrey@endrift.com
Fri, 15 Aug 2014 01:54:13 -0700
commit

61c410154f5d71731271287f4aae73bb8ed4f60f

parent

30fa9d8675adbc9f0bb147949a77016f6e9ce11b

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/util/png-io.csrc/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; }