--- trunk/xvidcore/dshow/src/debug.h 2005/09/15 10:52:28 1633 +++ trunk/xvidcore/dshow/src/debug.h 2005/09/15 10:55:29 1634 @@ -1,23 +1,21 @@ #ifndef _DSHOW_DEBUG_ #define _DSHOW_DEBUG_ -#ifdef _DEBUG -#include /* vsprintf */ -#define DPRINTF_BUF_SZ 1024 -static __inline void -DPRINTF(char *fmt, ...) -{ - va_list args; - char buf[DPRINTF_BUF_SZ]; +#ifdef __cplusplus +extern "C" { +#endif - va_start(args, fmt); - vsprintf(buf, fmt, args); - OutputDebugString(buf); -} +void OutputDebugStringf(char *fmt, ...); + +#ifdef _DEBUG +#define DPRINTF OutputDebugStringf #else static __inline void DPRINTF(char *fmt, ...) { } #endif +#ifdef __cplusplus +} +#endif #endif /* _DSHOW_DEBUG */