From c620fd42f4e8c36186c1e3c3523ac6bd1351f91d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 9 Sep 2011 22:55:51 +0200 Subject: glib_compat.h: emulate g_prefix_error() --- src/glib_compat.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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 @@ -48,6 +48,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, ...) -- cgit v1.2.3