From 3b8d4ddc659ee255b87e2b533f11ca805fb3eb67 Mon Sep 17 00:00:00 2001 From: shatty Date: Tue, 20 Jan 2004 06:46:42 +0000 Subject: [PATCH] incorporated my private dprintf patches, avcodec now building git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6190 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../media/plugins/avcodec/libavcodec/common.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/add-ons/media/plugins/avcodec/libavcodec/common.h b/src/add-ons/media/plugins/avcodec/libavcodec/common.h index 385372f792..84df80cfe8 100644 --- a/src/add-ons/media/plugins/avcodec/libavcodec/common.h +++ b/src/add-ons/media/plugins/avcodec/libavcodec/common.h @@ -201,9 +201,17 @@ inline void dprintf(const char* fmt,...) {} # else # ifdef DEBUG -# define dprintf(fmt,...) printf(fmt, __VA_ARGS__) +# if defined(__BEOS__) +# define dprintf(fmt...) printf(fmt) +# else +# define dprintf(fmt,...) printf(fmt, __VA_ARGS__) +# endif # else -# define dprintf(fmt,...) +# if defined(__BEOS__) +# define dprintf(fmt...) +# else +# define dprintf(fmt,...) +# endif # endif # endif /* !CONFIG_WIN32 */