Windows port:

- fix small bug in compiling debug console
This commit is contained in:
mtabachenko 2008-05-02 06:26:26 +00:00
parent 611477e9e7
commit 32e83fc1e7
2 changed files with 5 additions and 3 deletions

View File

@ -165,6 +165,7 @@ void LogStop(void) {
///////////////////////////////////////////////////////////////// Console ///////////////////////////////////////////////////////////////// Console
#ifdef WIN32 #ifdef WIN32
#ifdef BETA_VERSION
void OpenConsole() void OpenConsole()
{ {
COORD csize; COORD csize;
@ -213,3 +214,4 @@ void printlog(char *fmt, ...) {
WriteConsole(hConsole,ptr, (DWORD)len, &tmp, 0); WriteConsole(hConsole,ptr, (DWORD)len, &tmp, 0);
} }
#endif #endif
#endif

View File

@ -53,9 +53,9 @@ void LogStop(void);
#ifdef WIN32 #ifdef WIN32
#ifdef BETA_VERSION #ifdef BETA_VERSION
extern void OpenConsole(); void OpenConsole();
extern void CloseConsole(); void CloseConsole();
extern void printlog(LPCTSTR *fmt, ...); void printlog(LPCTSTR *fmt, ...);
#else #else
#define OpenConsole() #define OpenConsole()
#define CloseConsole() #define CloseConsole()