From 32487febfa883cabdf79eaeaffe4f362cc4109b9 Mon Sep 17 00:00:00 2001 From: adelikat Date: Mon, 3 Nov 2008 14:53:20 +0000 Subject: [PATCH] Fix Windows build from r1072 --- desmume/src/ROMReader.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/desmume/src/ROMReader.cpp b/desmume/src/ROMReader.cpp index 3b560de2f..bc8159cbc 100644 --- a/desmume/src/ROMReader.cpp +++ b/desmume/src/ROMReader.cpp @@ -70,8 +70,11 @@ ROMReader_struct STDROMReader = void * STDROMReaderInit(const char * filename) { - struct stat sb; - +#ifdef WIN32 + struct _stat sb; +#else + struct stat sb; +#endif if (stat(filename, &sb) == -1) return 0;