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

codegen: Do not call g_type_init when targeting GLib >= 2.36

Fixes bug 686222.
parent d087035c
......@@ -841,7 +841,9 @@ public abstract class Vala.CCodeMethodModule : CCodeStructModule {
ccode.add_expression (thread_init_call);
}
ccode.add_expression (new CCodeFunctionCall (new CCodeIdentifier ("g_type_init")));
if (!context.require_glib_version (2, 36)) {
ccode.add_expression (new CCodeFunctionCall (new CCodeIdentifier ("g_type_init")));
}
var main_call = new CCodeFunctionCall (new CCodeIdentifier (function.name));
if (m.get_parameters ().size == 1) {
......
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