[vala/0.46] codegen: Include "glib.h" for g_return_*() usage
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.46] codegen: Include "glib.h" for g_return_*() usage
- Date: Tue, 24 Mar 2020 09:49:04 +0000 (UTC)
commit 4a11cc646bb2643c71b1c85a59668c4d041dc70d
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Thu Mar 19 18:24:16 2020 +0100
codegen: Include "glib.h" for g_return_*() usage
Fixes https://gitlab.gnome.org/GNOME/vala/issues/940
codegen/valagtypemodule.vala | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/codegen/valagtypemodule.vala b/codegen/valagtypemodule.vala
index d4e0f3eec..dbdc7caf3 100644
--- a/codegen/valagtypemodule.vala
+++ b/codegen/valagtypemodule.vala
@@ -2477,6 +2477,9 @@ public class Vala.GTypeModule : GErrorModule {
ccheck.add_argument (cnonnull);
}
+ // g_return_* needs glib.h
+ cfile.add_include ("glib.h");
+
var cm = method_node as CreationMethod;
if (cm != null && cm.parent_symbol is ObjectTypeSymbol) {
ccheck.call = new CCodeIdentifier ("g_return_val_if_fail");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]