mirror of https://github.com/stella-emu/stella.git
Some cleanups for compiling under gcc 3.x.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@104 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
f313c951fb
commit
457b1edfab
|
@ -13,7 +13,7 @@
|
||||||
## See the file "license" for information on usage and redistribution of
|
## See the file "license" for information on usage and redistribution of
|
||||||
## this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
## this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||||
##
|
##
|
||||||
## $Id: makefile,v 1.17 2002-05-14 18:29:44 stephena Exp $
|
## $Id: makefile,v 1.18 2002-08-03 22:52:39 stephena Exp $
|
||||||
##============================================================================
|
##============================================================================
|
||||||
|
|
||||||
##============================================================================
|
##============================================================================
|
||||||
|
@ -35,8 +35,8 @@ OPTIMIZATIONS =
|
||||||
# -malign-functions=2 -malign-jumps=2 -malign-loops=2
|
# -malign-functions=2 -malign-jumps=2 -malign-loops=2
|
||||||
### to get full optimization under gcc/x Athlon based OS's..
|
### to get full optimization under gcc/x Athlon based OS's..
|
||||||
# OPTIMIZATIONS = -O3 -mcpu=athlon -march=athlon -Wall -Wno-unused \
|
# OPTIMIZATIONS = -O3 -mcpu=athlon -march=athlon -Wall -Wno-unused \
|
||||||
# -funroll-loops -fstrength-reduce -fomit-frame-pointer -ffast-math \
|
-funroll-loops -fstrength-reduce -fomit-frame-pointer -ffast-math \
|
||||||
# -malign-functions=2 -malign-jumps=2 -malign-loops=2
|
-falign-functions=2 -falign-jumps=2 -falign-loops=2
|
||||||
|
|
||||||
### if your C++ compiler doesn't support the bool type
|
### if your C++ compiler doesn't support the bool type
|
||||||
# BSPF_BOOL = 1
|
# BSPF_BOOL = 1
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
// See the file "license" for information on usage and redistribution of
|
// See the file "license" for information on usage and redistribution of
|
||||||
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||||
//
|
//
|
||||||
// $Id: Snapshot.cxx,v 1.2 2002-03-12 19:27:11 stephena Exp $
|
// $Id: Snapshot.cxx,v 1.3 2002-08-03 22:52:39 stephena Exp $
|
||||||
//============================================================================
|
//============================================================================
|
||||||
|
|
||||||
#include <png.h>
|
#include <png.h>
|
||||||
|
@ -37,7 +37,7 @@ Snapshot::~Snapshot()
|
||||||
void Snapshot::png_write_data(png_structp ctx, png_bytep area, png_size_t size)
|
void Snapshot::png_write_data(png_structp ctx, png_bytep area, png_size_t size)
|
||||||
{
|
{
|
||||||
ofstream* out = (ofstream *) png_get_io_ptr(ctx);
|
ofstream* out = (ofstream *) png_get_io_ptr(ctx);
|
||||||
out->write(area, size);
|
out->write((const char *)area, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Snapshot::png_io_flush(png_structp ctx)
|
void Snapshot::png_io_flush(png_structp ctx)
|
||||||
|
|
Loading…
Reference in New Issue