diff options
author | David Schleef <ds@schleef.org> | 2003-09-03 03:56:58 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2003-09-03 03:56:58 +0000 |
commit | 2960ad0444e53ab56a1ff0a6ce94c88a9ec3516b (patch) | |
tree | 9cb5a8a1092aacfe73d37f27fa28b2ed0464908f /gst-libs/gst/media-info | |
parent | e710138948597e50c108bfb7241ca64e042fba13 (diff) | |
download | gst-plugins-bad-2960ad0444e53ab56a1ff0a6ce94c88a9ec3516b.tar.gz gst-plugins-bad-2960ad0444e53ab56a1ff0a6ce94c88a9ec3516b.tar.bz2 gst-plugins-bad-2960ad0444e53ab56a1ff0a6ce94c88a9ec3516b.zip |
Fix to handle iso-style variable argument macros (#121175)
Original commit message from CVS:
Fix to handle iso-style variable argument macros (#121175)
Diffstat (limited to 'gst-libs/gst/media-info')
-rw-r--r-- | gst-libs/gst/media-info/media-info.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/gst-libs/gst/media-info/media-info.c b/gst-libs/gst/media-info/media-info.c index 4e8f56b3..634a9f45 100644 --- a/gst-libs/gst/media-info/media-info.c +++ b/gst-libs/gst/media-info/media-info.c @@ -22,8 +22,21 @@ #include "media-info.h" static gboolean _gst_media_info_debug = TRUE; + +#ifdef G_HAVE_ISO_VARARGS +#define GMI_DEBUG(...) \ + 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 + struct GstMediaInfoPriv { |