47 |
|
|
48 |
/* debug level for this library */ |
/* debug level for this library */ |
49 |
#ifdef _DEBUG |
#ifdef _DEBUG |
50 |
#ifndef DPRINTF_LEVEL |
#define DPRINTF_LEVEL 0x000000ff |
|
#define DPRINTF_LEVEL 0x8000000f |
|
|
#endif |
|
51 |
#else |
#else |
52 |
#define DPRINTF_LEVEL 0 |
#define DPRINTF_LEVEL 0 |
53 |
#endif |
#endif |
91 |
#if defined(ARCH_IS_32BIT) |
#if defined(ARCH_IS_32BIT) |
92 |
# define CACHE_LINE 64 |
# define CACHE_LINE 64 |
93 |
# define ptr_t uint32_t |
# define ptr_t uint32_t |
94 |
|
# define intptr_t int32_t |
95 |
|
# if _MSC_VER < 1300 |
96 |
|
# define uintptr_t uint32_t |
97 |
|
# else |
98 |
|
# include <stdarg.h> |
99 |
|
# endif |
100 |
#elif defined(ARCH_IS_64BIT) |
#elif defined(ARCH_IS_64BIT) |
101 |
# define CACHE_LINE 64 |
# define CACHE_LINE 64 |
102 |
# define ptr_t uint64_t |
# define ptr_t uint64_t |
103 |
|
# define intptr_t int64_t |
104 |
|
# if _MSC_VER < 1300 |
105 |
|
# define uintptr_t uint64_t |
106 |
|
# else |
107 |
|
# include <stdarg.h> |
108 |
|
# endif |
109 |
#else |
#else |
110 |
# error You are trying to compile XviD without defining address bus size. |
# error You are trying to compile XviD without defining address bus size. |
111 |
#endif |
#endif |
146 |
char buf[DPRINTF_BUF_SZ]; |
char buf[DPRINTF_BUF_SZ]; |
147 |
va_start(args, fmt); |
va_start(args, fmt); |
148 |
vsprintf(buf, fmt, args); |
vsprintf(buf, fmt, args); |
|
strcat(buf,"\n"); |
|
149 |
OutputDebugString(buf); |
OutputDebugString(buf); |
150 |
fputs(buf, stderr); |
fprintf(stderr, "%s\n", buf); |
151 |
} |
} |
152 |
} |
} |
153 |
# else |
# else |