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;
|
||||
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) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user