UNITY: Call g_type_init but define DISABLE_DEPRECATION_WARNINGS
This commit is contained in:
parent
fee66db83d
commit
e96cba8bf3
1 changed files with 3 additions and 4 deletions
|
@ -26,6 +26,8 @@
|
|||
|
||||
#if defined(POSIX) && defined(USE_TASKBAR) && defined(USE_UNITY)
|
||||
|
||||
#define GLIB_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
#include "backends/taskbar/unity/unity-taskbar.h"
|
||||
|
||||
#include "common/textconsole.h"
|
||||
|
@ -33,13 +35,10 @@
|
|||
#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
|
||||
* Deprecated in Glib >= 2.36.0
|
||||
*/
|
||||
g_type_init();
|
||||
#endif
|
||||
|
||||
_loop = g_main_loop_new(NULL, FALSE);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue