[Spice-devel] [PATCH spice-server 01/10] Define a compatibility include for GLib

Francois Gouget fgouget at codeweavers.com
Tue Oct 18 08:38:29 UTC 2016


On Tue, 18 Oct 2016, Pavel Grunt wrote:
[...]
> > +#if !GLIB_CHECK_VERSION(2,30,0)
> > +static inline gboolean
> > +g_queue_remove_boolean(GQueue *queue, gconstpointer data)
> > +{
> > +	GList *link = g_queue_find(queue, data);
> > +	if (!link) {
> > +		return FALSE;
> > +	}
> > +	g_queue_unlink(queue, link);
> > +	return TRUE;
> > +}
> > +#define g_queue_remove g_queue_remove_boolean
> 
> glib changed the function ?

g_queue_remove() used to return void, thus causing a compilation error 
where we assigned / returned its value.


-- 
Francois Gouget <fgouget at codeweavers.com>


More information about the Spice-devel mailing list