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