Work around glib functions that had been deprecated with glib 2.32.
parent
e4c24c3e34
commit
aa73973514
|
|
@ -121,7 +121,11 @@ bool LLWindowSDL::ll_try_gtk_init(void)
|
|||
if (!tried_gtk_init)
|
||||
{
|
||||
tried_gtk_init = TRUE;
|
||||
|
||||
#if ( !defined(GLIB_MAJOR_VERSION) && !defined(GLIB_MINOR_VERSION) ) || ( GLIB_MAJOR_VERSION < 2 ) || ( GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 32 )
|
||||
if (!g_thread_supported ()) g_thread_init (NULL);
|
||||
#endif
|
||||
|
||||
maybe_lock_display();
|
||||
gtk_is_good = gtk_init_check(NULL, NULL);
|
||||
maybe_unlock_display();
|
||||
|
|
|
|||
|
|
@ -852,7 +852,10 @@ MediaPluginGStreamer010::startup()
|
|||
// only do global GStreamer initialization once.
|
||||
if (!mDoneInit)
|
||||
{
|
||||
|
||||
#if ( !defined(GLIB_MAJOR_VERSION) && !defined(GLIB_MINOR_VERSION) ) || ( GLIB_MAJOR_VERSION < 2 ) || ( GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 32 )
|
||||
g_thread_init(NULL);
|
||||
#endif
|
||||
|
||||
// Init the glib type system - we need it.
|
||||
g_type_init();
|
||||
|
|
|
|||
|
|
@ -229,7 +229,11 @@ private:
|
|||
// take care to initialize glib properly, because some
|
||||
// versions of Qt don't, and we indirectly need it for (some
|
||||
// versions of) Flash to not crash the browser.
|
||||
|
||||
#if ( !defined(GLIB_MAJOR_VERSION) && !defined(GLIB_MINOR_VERSION) ) || ( GLIB_MAJOR_VERSION < 2 ) || ( GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 32 )
|
||||
if (!g_thread_supported ()) g_thread_init (NULL);
|
||||
#endif
|
||||
|
||||
g_type_init();
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -125,7 +125,10 @@ bool LLAppViewerLinux::init()
|
|||
// before any mutexes are held, *and* some of our third-party
|
||||
// libraries likes to use glib functions; in short, do this here
|
||||
// really early in app startup!
|
||||
|
||||
#if ( !defined(GLIB_MAJOR_VERSION) && !defined(GLIB_MINOR_VERSION) ) || ( GLIB_MAJOR_VERSION < 2 ) || ( GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 32 )
|
||||
if (!g_thread_supported ()) g_thread_init (NULL);
|
||||
#endif
|
||||
|
||||
return LLAppViewer::init();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue