mirror of https://github.com/stella-emu/stella.git
Fixes for libpng compilation in Linux.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2052 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
58452a6f37
commit
4409e55894
|
@ -11,7 +11,6 @@ MODULE_OBJS := \
|
|||
src/libpng/pngrtran.o \
|
||||
src/libpng/pngrutil.o \
|
||||
src/libpng/pngset.o \
|
||||
src/libpng/pngtest.o \
|
||||
src/libpng/pngtrans.o \
|
||||
src/libpng/pngwio.o \
|
||||
src/libpng/pngwrite.o \
|
||||
|
|
|
@ -254,7 +254,7 @@ png_inflate(png_structp png_ptr, const png_byte *data, png_size_t size,
|
|||
* buffer if available.
|
||||
*/
|
||||
{
|
||||
char *msg;
|
||||
const char *msg;
|
||||
if (png_ptr->zstream.msg != 0)
|
||||
msg = png_ptr->zstream.msg;
|
||||
else
|
||||
|
@ -344,7 +344,7 @@ png_decompress_chunk(png_structp png_ptr, int comp_type,
|
|||
{
|
||||
/* Success (maybe) - really uncompress the chunk. */
|
||||
png_size_t new_size = 0;
|
||||
png_charp text = png_malloc_warn(png_ptr,
|
||||
png_charp text = (png_charp) png_malloc_warn(png_ptr,
|
||||
prefix_size + expanded_size + 1);
|
||||
|
||||
if (text != NULL)
|
||||
|
@ -392,7 +392,7 @@ png_decompress_chunk(png_structp png_ptr, int comp_type,
|
|||
* amount of compressed data.
|
||||
*/
|
||||
{
|
||||
png_charp text = png_malloc_warn(png_ptr, prefix_size + 1);
|
||||
png_charp text = (png_charp) png_malloc_warn(png_ptr, prefix_size + 1);
|
||||
if (text != NULL)
|
||||
{
|
||||
if (prefix_size > 0)
|
||||
|
|
Loading…
Reference in New Issue