aboutsummaryrefslogtreecommitdiffstats
path: root/src/glib_compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/glib_compat.h')
-rw-r--r--src/glib_compat.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/glib_compat.h b/src/glib_compat.h
index 35ec77df6..8307997d5 100644
--- a/src/glib_compat.h
+++ b/src/glib_compat.h
@@ -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