Skip to content

Commit

Permalink
Fix build for vala-0.50
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Oct 31, 2020
1 parent 9d4fb18 commit 7f16dae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion valabindwriter.vala
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,14 @@ public class ValabindWriter : CodeVisitor {
add_package (context, "glib-2.0");
add_package (context, "gobject-2.0");
/* vala 0.17 only support gobject profile */
if (glibmode)
if (glibmode) {
context.add_define ("GOBJECT");
}
#if VALA_0_50
// required to avoid ugly runtime errors
#else
context.profile = Profile.GOBJECT;
#endif
}

public void parse () {
Expand Down

0 comments on commit 7f16dae

Please sign in to comment.