diff options
author | Juergen Keil <jkeil@users.sourceforge.net> | 2002-06-26 15:50:49 +0000 |
---|---|---|
committer | Juergen Keil <jkeil@users.sourceforge.net> | 2002-06-26 15:50:49 +0000 |
commit | 41e86f6fc9ac88cc8280940a1a6fcb0af05a2545 (patch) | |
tree | 20f010dbd6cec53d93976b3acc93d48b9168112c | |
parent | 1ad6d58940788d761bfed6ca0eabb9be93eb5175 (diff) | |
download | xine-lib-41e86f6fc9ac88cc8280940a1a6fcb0af05a2545.tar.gz xine-lib-41e86f6fc9ac88cc8280940a1a6fcb0af05a2545.tar.bz2 |
C99 version of macro with variable arguments (for Sun Forte cc)
CVS patchset: 2165
CVS date: 2002/06/26 15:50:49
-rw-r--r-- | src/libffmpeg/libavcodec/common.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libffmpeg/libavcodec/common.h b/src/libffmpeg/libavcodec/common.h index 0d2c560c6..a6e7fbe1d 100644 --- a/src/libffmpeg/libavcodec/common.h +++ b/src/libffmpeg/libavcodec/common.h @@ -136,11 +136,19 @@ inline void dprintf(const char* fmt,...) {} #else +#if __GNUC__ #ifdef DEBUG #define dprintf(fmt,args...) printf(fmt, ## args) #else #define dprintf(fmt,args...) #endif +#else +#ifdef DEBUG +#define dprintf(...) printf(__VA_ARGS__) +#else +#define dprintf(...) +#endif +#endif #endif /* !CONFIG_WIN32 */ |