Commit d087035c authored by Jürg Billeter's avatar Jürg Billeter
Browse files

codegen: Do not call g_thread_init when targeting GLib >= 2.32

parent 2b7b00c2
......@@ -834,7 +834,7 @@ public abstract class Vala.CCodeMethodModule : CCodeStructModule {
ccode.add_expression (mem_profiler_init_call);
}
if (context.thread) {
if (context.thread && !context.require_glib_version (2, 32)) {
var thread_init_call = new CCodeFunctionCall (new CCodeIdentifier ("g_thread_init"));
thread_init_call.line = cmain.line;
thread_init_call.add_argument (new CCodeConstant ("NULL"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment