summaryrefslogtreecommitdiffstats
path: root/gst-libs/gst/media-info
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2003-09-03 03:55:53 +0000
committerDavid Schleef <ds@schleef.org>2003-09-03 03:55:53 +0000
commitdcc1d622f3ef9ee17d29b019fd8decedf8729cb2 (patch)
tree0f7cf3f298f6462f0e1393fd9d715ca10b0fa105 /gst-libs/gst/media-info
parent1efe55d898e71de7c22acbdc630980168cd9b82a (diff)
downloadgst-plugins-bad-dcc1d622f3ef9ee17d29b019fd8decedf8729cb2.tar.gz
gst-plugins-bad-dcc1d622f3ef9ee17d29b019fd8decedf8729cb2.tar.bz2
gst-plugins-bad-dcc1d622f3ef9ee17d29b019fd8decedf8729cb2.zip
clean up varargs macro definition
Original commit message from CVS: clean up varargs macro definition
Diffstat (limited to 'gst-libs/gst/media-info')
-rw-r--r--gst-libs/gst/media-info/media-info.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/gst-libs/gst/media-info/media-info.c b/gst-libs/gst/media-info/media-info.c
index 067286c4..4be9c241 100644
--- a/gst-libs/gst/media-info/media-info.c
+++ b/gst-libs/gst/media-info/media-info.c
@@ -24,15 +24,17 @@
static gboolean _gst_media_info_debug = TRUE;
#ifdef G_HAVE_ISO_VARARGS
-
#define GMI_DEBUG(...) \
- { if (_gst_media_info_debug) { g_print ( __VA_ARGS__ ); }}
-
+ G_STMT_START { \
+ if (_gst_media_info_debug) { g_print ( __VA_ARGS__ ); } \
+ } G_STMT_END
#elif defined(G_HAVE_GNUC_VARARGS)
-
#define GMI_DEBUG(format, args...) \
- { if (_gst_media_info_debug) { g_print ( format , ## args ); }}
-
+ G_STMT_START { \
+ if (_gst_media_info_debug) { g_print ( format , ## args ); } \
+ } G_STMT_END
+#else
+#error Variable argument macros not supported by compiler
#endif