output/raop: fallback for g_set_error_literal()

This function was added in GLib 2.18.  Make the plugin compatible with
older GLib versions.
This commit is contained in:
Max Kellermann 2011-08-29 08:25:11 +02:00
parent 8a63c27925
commit a769352a74
2 changed files with 12 additions and 0 deletions

View File

@ -80,4 +80,15 @@ g_uri_parse_scheme(const char *uri)
#endif
#if !GLIB_CHECK_VERSION(2,18,0)
static inline void
g_set_error_literal(GError **err, GQuark domain, gint code,
const gchar *message)
{
g_set_error(err, domain, code, "%s", message);
}
#endif
#endif

View File

@ -20,6 +20,7 @@
#include "output_api.h"
#include "mixer_list.h"
#include "raop_output_plugin.h"
#include "glib_compat.h"
#include <glib.h>
#include <unistd.h>