--- portab.h 2003/03/15 14:32:56 1.46.2.2 +++ portab.h 2003/03/28 07:28:23 1.48 @@ -23,7 +23,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id: portab.h,v 1.46.2.2 2003/03/15 14:32:56 suxen_drol Exp $ + * $Id: portab.h,v 1.48 2003/03/28 07:28:23 suxen_drol Exp $ * ****************************************************************************/ @@ -47,9 +47,7 @@ /* debug level for this library */ #ifdef _DEBUG -#ifndef DPRINTF_LEVEL -#define DPRINTF_LEVEL 0x8000000f -#endif +#define DPRINTF_LEVEL 0x000000ff #else #define DPRINTF_LEVEL 0 #endif @@ -91,11 +89,23 @@ ****************************************************************************/ #if defined(ARCH_IS_32BIT) -# define CACHE_LINE 64 +# define CACHE_LINE 64 # define ptr_t uint32_t +# define intptr_t int32_t +# if _MSC_VER < 1300 +# define uintptr_t uint32_t +# else +# include +# endif #elif defined(ARCH_IS_64BIT) # define CACHE_LINE 64 # define ptr_t uint64_t +# define intptr_t int64_t +# if _MSC_VER < 1300 +# define uintptr_t uint64_t +# else +# include +# endif #else # error You are trying to compile XviD without defining address bus size. #endif @@ -136,9 +146,8 @@ char buf[DPRINTF_BUF_SZ]; va_start(args, fmt); vsprintf(buf, fmt, args); - strcat(buf,"\n"); OutputDebugString(buf); - fputs(buf, stderr); + fprintf(stderr, "%s\n", buf); } } # else