diff --git a/stella/src/build/makefile b/stella/src/build/makefile index 065b765f9..5d016976e 100644 --- a/stella/src/build/makefile +++ b/stella/src/build/makefile @@ -13,7 +13,7 @@ ## See the file "license" for information on usage and redistribution of ## 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 ### to get full optimization under gcc/x Athlon based OS's.. # OPTIMIZATIONS = -O3 -mcpu=athlon -march=athlon -Wall -Wno-unused \ -# -funroll-loops -fstrength-reduce -fomit-frame-pointer -ffast-math \ -# -malign-functions=2 -malign-jumps=2 -malign-loops=2 + -funroll-loops -fstrength-reduce -fomit-frame-pointer -ffast-math \ + -falign-functions=2 -falign-jumps=2 -falign-loops=2 ### if your C++ compiler doesn't support the bool type # BSPF_BOOL = 1 diff --git a/stella/src/ui/common/Snapshot.cxx b/stella/src/ui/common/Snapshot.cxx index f5ba57c74..da956e257 100644 --- a/stella/src/ui/common/Snapshot.cxx +++ b/stella/src/ui/common/Snapshot.cxx @@ -13,7 +13,7 @@ // See the file "license" for information on usage and redistribution of // 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 @@ -37,7 +37,7 @@ Snapshot::~Snapshot() void Snapshot::png_write_data(png_structp ctx, png_bytep area, png_size_t size) { 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)