]> Git Repo - qemu.git/blobdiff - coroutine-gthread.c
gtk: skip keyboard grab when hover autograb is active
[qemu.git] / coroutine-gthread.c
index d3e5b991f77a329d2ef52527f7f5c37695af76d7..a61efe01dc0d579da29da84fa116c96b3ce36c5d 100644 (file)
@@ -115,14 +115,11 @@ static inline GThread *create_thread(GThreadFunc func, gpointer data)
 
 static void __attribute__((constructor)) coroutine_init(void)
 {
-    if (!g_thread_supported()) {
 #if !GLIB_CHECK_VERSION(2, 31, 0)
+    if (!g_thread_supported()) {
         g_thread_init(NULL);
-#else
-        fprintf(stderr, "glib threading failed to initialize.\n");
-        exit(1);
-#endif
     }
+#endif
 
     init_coroutine_cond();
 }
This page took 0.023131 seconds and 4 git commands to generate.