Fixes https://gitlab.gnome.org/GNOME/vala/issues/730
var cvar = get_cvalue_ (value);
if (type is DelegateType) {
+ if (context.profile != Profile.GOBJECT) {
+ // Required for NULL
+ cfile.add_include ("stddef.h");
+ }
+
var delegate_target = get_delegate_target_cvalue (value);
var delegate_target_destroy_notify = get_delegate_target_destroy_notify_cvalue (value);
return ccall;
}
+ if (context.profile != Profile.GOBJECT) {
+ // Required for NULL
+ cfile.add_include ("stddef.h");
+ }
+
/* (foo == NULL ? NULL : foo = (unref (foo), NULL)) */
/* can be simplified to