From 6a9972c5f5009cd334ead9f7b566f95a28a8548f Mon Sep 17 00:00:00 2001 From: Chris Apers Date: Mon, 15 Dec 2003 15:17:06 +0000 Subject: No stat.h on PalmOS svn-id: r11658 --- simon/debug.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'simon/debug.cpp') diff --git a/simon/debug.cpp b/simon/debug.cpp index ed9450fb4f..d2c111291e 100644 --- a/simon/debug.cpp +++ b/simon/debug.cpp @@ -353,7 +353,9 @@ void dump_bitmap(const char *filename, byte *offs, int w, int h, int flags, cons void SimonEngine::dump_single_bitmap(int file, int image, byte *offs, int w, int h, byte base) { char buf[40]; +#ifndef __PALM_OS__ struct stat statbuf; +#endif #if defined(MACOS_CARBON) sprintf(buf, ":dumps:File%d_Image%d.bmp", file, image); @@ -361,8 +363,10 @@ void SimonEngine::dump_single_bitmap(int file, int image, byte *offs, int w, int sprintf(buf, "dumps/File%d_Image%d.bmp", file, image); #endif +#ifndef __PALM_OS__ if (stat(buf, &statbuf) == 0) return; +#endif dump_bitmap(buf, offs, w, h, 0, _palette, base); } -- cgit v1.2.3