aboutsummaryrefslogtreecommitdiffstats
path: root/src/glib_compat.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-09-09 22:55:51 +0200
committerMax Kellermann <max@duempel.org>2011-09-09 22:55:57 +0200
commitc620fd42f4e8c36186c1e3c3523ac6bd1351f91d (patch)
treef9e5027c27e01ffb73be34072e11faa633ccb579 /src/glib_compat.h
parent2a859f870a11aca2f888890c7b59ab767be7ecbd (diff)
downloadmpd-c620fd42f4e8c36186c1e3c3523ac6bd1351f91d.tar.gz
mpd-c620fd42f4e8c36186c1e3c3523ac6bd1351f91d.tar.xz
mpd-c620fd42f4e8c36186c1e3c3523ac6bd1351f91d.zip
glib_compat.h: emulate g_prefix_error()
Diffstat (limited to '')
-rw-r--r--src/glib_compat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glib_compat.h b/src/glib_compat.h
index 8307997d5..f35576fa3 100644
--- a/src/glib_compat.h
+++ b/src/glib_compat.h
@@ -49,6 +49,12 @@ g_timeout_add_seconds(guint interval, GSourceFunc function, gpointer data)
#if !GLIB_CHECK_VERSION(2,16,0)
static inline void
+g_prefix_error(G_GNUC_UNUSED GError **error_r,
+ G_GNUC_UNUSED const gchar *format, ...)
+{
+}
+
+static inline void
g_propagate_prefixed_error(GError **dest_r, GError *src,
G_GNUC_UNUSED const gchar *format, ...)
{