diff options
-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 */ |