[vala/staging] codegen: Include "glib.h" for g_return_*() usage
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] codegen: Include "glib.h" for g_return_*() usage
- Date: Thu, 19 Mar 2020 17:35:48 +0000 (UTC)
commit 6241e0523461c9af5d1f0881ec4c0087bcdab522
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 59af90144..5632b82a4 100644
--- a/codegen/valagtypemodule.vala
+++ b/codegen/valagtypemodule.vala
@@ -2370,6 +2370,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]