--- portab.h 2002/04/21 02:30:24 1.15 +++ portab.h 2002/04/25 06:55:00 1.16 @@ -4,6 +4,21 @@ #if defined(WIN32) #include +#include + + +#define DPRINTF_BUF_SZ 1024 +static void dprintf(char *fmt, ...) +{ + va_list args; + char buf[DPRINTF_BUF_SZ]; + + va_start(args, fmt); + vsprintf(buf, fmt, args); + OutputDebugString(buf); + fprintf(stdout, "%s\n", buf); +} + #define DEBUGCBR(A,B,C) { char tmp[100]; wsprintf(tmp, "CBR: frame: %i, quant: %i, deviation: %i\n", (A), (B), (C)); OutputDebugString(tmp); }