summaryrefslogtreecommitdiff
path: root/src/libffmpeg/libavcodec/mjpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libffmpeg/libavcodec/mjpeg.c')
-rw-r--r--src/libffmpeg/libavcodec/mjpeg.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/libffmpeg/libavcodec/mjpeg.c b/src/libffmpeg/libavcodec/mjpeg.c
index 1103e11d0..391ce7d23 100644
--- a/src/libffmpeg/libavcodec/mjpeg.c
+++ b/src/libffmpeg/libavcodec/mjpeg.c
@@ -424,9 +424,17 @@ void mjpeg_encode_mb(MpegEncContext *s,
#ifndef CONFIG_WIN32
#ifdef DEBUG
-#define dprintf(fmt,args...) printf(fmt, ## args)
+# if __GNUC_
+# define dprintf(fmt,args...) printf(fmt, ## args)
+# else
+# define dprintf(...) printf(__VA_ARGS__)
+# endif
#else
-#define dprintf(fmt,args...)
+# if __GNUC__
+# define dprintf(fmt,args...)
+# else
+# define dprintf(...)
+# endif
#endif
#else