Make gswe_error_quark() available to glib < 2.34

This commit is contained in:
Gergely Polonkai 2013-10-05 01:12:09 +02:00
parent 7463b0e5cd
commit 5f8939d730

View File

@ -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: