Compiler warning fixes.
g_thread_init is automatically called since 2.32 (and deprecated since 2.35). g_type_init is automatically called since 2.36 and will be deprecated in the future.
This commit is contained in:
@@ -70,7 +70,9 @@ namespace LLWindowSDL {
|
||||
if (!tried_gtk_init)
|
||||
{
|
||||
tried_gtk_init = TRUE;
|
||||
#if !GLIB_CHECK_VERSION(2, 32, 0)
|
||||
if (!g_thread_supported ()) g_thread_init (NULL);
|
||||
#endif
|
||||
//maybe_lock_display();
|
||||
gtk_is_good = gtk_init_check(NULL, NULL);
|
||||
//maybe_unlock_display();
|
||||
|
||||
Reference in New Issue
Block a user