[gst-devel] Re: Forte Solaris patch

Christian Schaller christian.schaller at gnome.org
Tue Mar 11 08:34:04 CET 2003


Hi Brian,
You have CVS access so you can just commit it.

Christian

On Mon, 2003-03-10 at 16:02, Brian Cameron wrote:
> 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
> 
> ______________________________________________________________________
> 
> 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