- added a system-include independent wrapper for Windows's OutputDebugString, so that this can be used more easily in files that cannot include windows.h.
This commit is contained in:
parent
ef08e29d51
commit
12129b0f07
8 changed files with 24 additions and 8 deletions
|
|
@ -782,11 +782,6 @@ void Renderer::MarkInstrument(int banknum, int percussion, int instr)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
void cmsg(int type, int verbosity_level, const char *fmt, ...)
|
||||
{
|
||||
/*
|
||||
|
|
@ -801,7 +796,7 @@ void cmsg(int type, int verbosity_level, const char *fmt, ...)
|
|||
va_start(args, fmt);
|
||||
vsprintf(buf, fmt, args);
|
||||
va_end(args);
|
||||
OutputDebugString(buf);
|
||||
I_DebugPrint(buf);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue