Make gswe_error_quark() available to glib < 2.34
This commit is contained in:
parent
7463b0e5cd
commit
5f8939d730
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user