From 32e83fc1e7d266141bec344e0eeffa8db06db692 Mon Sep 17 00:00:00 2001 From: mtabachenko Date: Fri, 2 May 2008 06:26:26 +0000 Subject: [PATCH] Windows port: - fix small bug in compiling debug console --- desmume/src/debug.c | 2 ++ desmume/src/debug.h | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/desmume/src/debug.c b/desmume/src/debug.c index a8fdca0b9..e38df918a 100644 --- a/desmume/src/debug.c +++ b/desmume/src/debug.c @@ -165,6 +165,7 @@ void LogStop(void) { ///////////////////////////////////////////////////////////////// Console #ifdef WIN32 +#ifdef BETA_VERSION void OpenConsole() { COORD csize; @@ -212,4 +213,5 @@ void printlog(char *fmt, ...) { ptr=msg; len=strlen(msg); WriteConsole(hConsole,ptr, (DWORD)len, &tmp, 0); } +#endif #endif \ No newline at end of file diff --git a/desmume/src/debug.h b/desmume/src/debug.h index 38224a270..ad99a205f 100644 --- a/desmume/src/debug.h +++ b/desmume/src/debug.h @@ -53,9 +53,9 @@ void LogStop(void); #ifdef WIN32 #ifdef BETA_VERSION -extern void OpenConsole(); -extern void CloseConsole(); -extern void printlog(LPCTSTR *fmt, ...); +void OpenConsole(); +void CloseConsole(); +void printlog(LPCTSTR *fmt, ...); #else #define OpenConsole() #define CloseConsole()