Added #if for deprecated g_type_init()

This commit is contained in:
Ingo Ruhnke 2013-04-07 19:27:49 +02:00
parent bb8fcbd3d3
commit e903c5f7f8

View file

@ -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);