From 97ed1aa70a9f95f5eaada9c410d67e806bfc126f Mon Sep 17 00:00:00 2001 From: yabause Date: Fri, 2 May 2008 19:11:00 +0000 Subject: [PATCH] windows specific code should be #ifdef WIN32 protected --- desmume/src/debug.c | 4 +++- desmume/src/debug.h | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/desmume/src/debug.c b/desmume/src/debug.c index e38df918a..0501f16bc 100644 --- a/desmume/src/debug.c +++ b/desmume/src/debug.c @@ -25,7 +25,9 @@ /////// Console vars #define BUFFER_SIZE 100 +#ifdef WIN32 HANDLE hConsole; +#endif /////// ////////////////////////////////////////////////////////////////////////////// @@ -214,4 +216,4 @@ void printlog(char *fmt, ...) { WriteConsole(hConsole,ptr, (DWORD)len, &tmp, 0); } #endif -#endif \ No newline at end of file +#endif diff --git a/desmume/src/debug.h b/desmume/src/debug.h index ad99a205f..70eb58c64 100644 --- a/desmume/src/debug.h +++ b/desmume/src/debug.h @@ -20,7 +20,9 @@ #ifndef DEBUG_H #define DEBUG_H +#ifdef WIN32 #include +#endif #include "types.h" #include