--- trunk/xvidcore/dshow/src/debug.h 2005/12/24 01:06:20 1669 +++ trunk/xvidcore/dshow/src/debug.h 2005/12/30 13:52:39 1670 @@ -1,11 +1,23 @@ #ifndef _DSHOW_DEBUG_ #define _DSHOW_DEBUG_ +#include + #ifdef __cplusplus extern "C" { #endif -void OutputDebugStringf(char *fmt, ...); +static __inline void OutputDebugStringf(char *fmt, ...) +{ + va_list args; + char buf[256]; + + va_start(args, fmt); + vsprintf(buf, fmt, args); + strcat(buf, "\n"); + OutputDebugString(buf); + va_end(args); +} #ifdef _DEBUG #define DPRINTF OutputDebugStringf