diff options
author | Erik Kundiman <erik@megapahit.org> | 2023-07-12 16:28:19 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2023-07-19 12:42:56 +0800 |
commit | cb2595bbb1dfce0170715b7b18c80218e0c20ce9 (patch) | |
tree | 69f1ef2df490b8b45a1abb1d6d03cf7486ce9877 /indra/llwindow | |
parent | b844e48297b6650003aa1f24bef618f7b652466c (diff) |
Disable g_thread_init when using system libs
On GCC, compiling against a recent GTK2 version would stop on deprecated
pre-processors.
Diffstat (limited to 'indra/llwindow')
-rw-r--r-- | indra/llwindow/llwindowsdl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llwindow/llwindowsdl.cpp b/indra/llwindow/llwindowsdl.cpp index d9f7d07326..8384845516 100644 --- a/indra/llwindow/llwindowsdl.cpp +++ b/indra/llwindow/llwindowsdl.cpp @@ -119,7 +119,9 @@ bool LLWindowSDL::ll_try_gtk_init(void) if (!tried_gtk_init) { tried_gtk_init = TRUE; +#ifndef LL_USESYSTEMLIBS if (!g_thread_supported ()) g_thread_init (NULL); +#endif maybe_lock_display(); gtk_is_good = gtk_init_check(NULL, NULL); maybe_unlock_display(); |