[FFmpeg-cvslog] ffprobe: replace specific ## GNU cpp extension with __VA_ARGS__.

Clément Bœsch git at videolan.org
Fri Sep 9 14:41:53 CEST 2011


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Fri Sep  9 14:40:18 2011 +0200| [88fddd0bcc97c214c4bbd2e2c9934dde35feb60b] | committer: Clément Bœsch

ffprobe: replace specific ## GNU cpp extension with __VA_ARGS__.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=88fddd0bcc97c214c4bbd2e2c9934dde35feb60b
---

 ffprobe.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/ffprobe.c b/ffprobe.c
index d435ee3..538120f 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -172,11 +172,11 @@ static void default_print_footer(const char *section)
 
 /* Print helpers */
 
-#define print_fmt0(k, f, a...) w->print_fmt_f(k, f, ##a)
-#define print_fmt( k, f, a...) do {   \
-    if (w->item_sep)                  \
-        printf("%s", w->item_sep);    \
-    w->print_fmt_f(k, f, ##a);        \
+#define print_fmt0(k, f, ...) w->print_fmt_f(k, f, __VA_ARGS__)
+#define print_fmt( k, f, ...) do {     \
+    if (w->item_sep)                   \
+        printf("%s", w->item_sep);     \
+    w->print_fmt_f(k, f, __VA_ARGS__); \
 } while (0)
 
 #define print_int0(k, v) w->print_int_f(k, v)



More information about the ffmpeg-cvslog mailing list