From: Rico Tzschichholz Date: Wed, 21 Nov 2018 13:46:37 +0000 (+0100) Subject: codegen: Don't emit type_id for enum in non GOBJECT profile X-Git-Tag: 0.42.4~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92ceb982710af8df4a5c25d42c244f539354659d;p=thirdparty%2Fvala.git codegen: Don't emit type_id for enum in non GOBJECT profile --- diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala index 5c0c81b4d..72ccce4e8 100644 --- a/codegen/valaccodebasemodule.vala +++ b/codegen/valaccodebasemodule.vala @@ -837,7 +837,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator { decl_space.add_type_definition (cenum); decl_space.add_type_definition (new CCodeNewline ()); - if (!get_ccode_has_type_id (en)) { + if (context.profile != Profile.GOBJECT || !get_ccode_has_type_id (en)) { return true; }