diff options
Diffstat (limited to '')
-rw-r--r-- | src/glib_compat.h | 11 |
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 |