[gst-devel] Re: Forte Solaris patch
Brian Cameron
Brian.Cameron at Sun.COM
Mon Mar 10 07:08:18 CET 2003
Gstreamer Team:
The tools/gst-xmlinspect.c program stopped building on Solaris due to the
fact that it does not properly use ISO-standard macro style. This patch
corrects the problem. Could it be commited to CVS head?
Thanks!
Brian
-------------- next part --------------
Index: gstreamer/tools/gst-xmlinspect.c
===================================================================
RCS file: /cvsroot/gstreamer/gstreamer/tools/gst-xmlinspect.c,v
retrieving revision 1.2
diff -u -p -r1.2 gst-xmlinspect.c
--- gstreamer/tools/gst-xmlinspect.c 21 Feb 2003 19:41:02 -0000 1.2
+++ gstreamer/tools/gst-xmlinspect.c 10 Mar 2003 15:05:42 -0000
@@ -22,10 +22,23 @@ G_STMT_START{
} \
}G_STMT_END
-#define PUT_STRING(pfx,str, a...) \
+#ifdef G_HAVE_ISO_VARARGS
+
+#define PUT_STRING(pfx, ...) \
+G_STMT_START{ \
+ gchar *ps_val = g_strdup_printf(__VA_ARGS__); \
+ g_print ("%*.*s%s\n", pfx, pfx, "", ps_val); \
+ g_free(ps_val); \
+}G_STMT_END
+
+#elif defined(G_HAVE_GNUC_VARARGS)
+
+#define PUT_STRING(pfx, str, a...) \
G_STMT_START{ \
g_print ("%*.*s"str"\n", pfx, pfx, "", ##a); \
}G_STMT_END
+
+#endif
static void
print_prop (GstPropsEntry *prop, gint pfx)
More information about the gstreamer-devel
mailing list