mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
UNITY: Call g_type_init only with GLib < 2.36
With GLib >= 2.36 g_type_init() is deprecated and only throws an ugly warning
This commit is contained in:
parent
2f4f7d480e
commit
fee66db83d
@ -33,7 +33,13 @@
|
||||
#include <unity.h>
|
||||
|
||||
UnityTaskbarManager::UnityTaskbarManager() {
|
||||
#if GLIB_CHECK_VERSION(2, 36, 0) == FALSE
|
||||
/*
|
||||
* Glib version is < 2.36.0, it still needs g_type_init(),
|
||||
* deprecated in later versions
|
||||
*/
|
||||
g_type_init();
|
||||
#endif
|
||||
|
||||
_loop = g_main_loop_new(NULL, FALSE);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user