Added #if for deprecated g_type_init()
This commit is contained in:
parent
bb8fcbd3d3
commit
e903c5f7f8
1 changed files with 3 additions and 0 deletions
|
@ -107,7 +107,10 @@ XboxdrvDaemon::XboxdrvDaemon(const Options& opts) :
|
|||
assert(!s_current);
|
||||
s_current = this;
|
||||
|
||||
#if !GLIB_CHECK_VERSION(2,35,0)
|
||||
g_type_init();
|
||||
#endif
|
||||
|
||||
m_gmain = g_main_loop_new(NULL, false);
|
||||
|
||||
signal(SIGINT, &XboxdrvDaemon::on_sigint);
|
||||
|
|
Loading…
Reference in a new issue