Initialize GLib type system when necessary
With 2.36 it became deprecated, as the type system is initialized automatically. Before that version, just call g_type_init() from gswe_init()
This commit is contained in:
parent
dd803b09f2
commit
695f5b96ae
@ -119,6 +119,11 @@ gswe_init(void)
|
|||||||
GsweAspectInfo *aspect_info;
|
GsweAspectInfo *aspect_info;
|
||||||
GsweAntiscionAxisInfo *antiscion_axis_info;
|
GsweAntiscionAxisInfo *antiscion_axis_info;
|
||||||
|
|
||||||
|
/* Before 2.34, g_type_init() must have been called. Let's do it! */
|
||||||
|
#if !GLIB_CHECK_VERSION(2, 36, 0)
|
||||||
|
g_type_init();
|
||||||
|
#endif
|
||||||
|
|
||||||
if (gswe_initialized) {
|
if (gswe_initialized) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user