From 5f8939d7305fa777d5e6072309d5870c53389cca Mon Sep 17 00:00:00 2001 From: "Gergely Polonkai (W00d5t0ck)" Date: Sat, 5 Oct 2013 01:12:09 +0200 Subject: [PATCH] Make gswe_error_quark() available to glib < 2.34 --- src/swe-glib.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/swe-glib.c b/src/swe-glib.c index d9d47bc..cf167f1 100644 --- a/src/swe-glib.c +++ b/src/swe-glib.c @@ -94,7 +94,15 @@ GsweTimestamp *gswe_full_moon_base_date; * * Return value: a #GQuark */ +#if GLIB_CHECK_VERSION(2, 34, 0) G_DEFINE_QUARK(gswe-error-quark, gswe_error); +#else +GQuark +gswe_error_quark(void) +{ + return g_quark_from_static_string("gswe-error-quark"); +} +#endif /** * gswe_init: