]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Fix external constants
authorJürg Billeter <j@bitron.ch>
Fri, 10 Sep 2010 06:33:52 +0000 (08:33 +0200)
committerJürg Billeter <j@bitron.ch>
Fri, 10 Sep 2010 15:34:18 +0000 (17:34 +0200)
codegen/valaccodebasemodule.vala

index 837aa1d1dd80151a497259568104a6dc57e12946..454e94c034acae346c02db49b9612da8af15bbe0 100644 (file)
@@ -763,7 +763,7 @@ public class Vala.CCodeBaseModule : CodeGenerator {
                        return;
                }
 
-               if (c.source_reference.file.file_type != SourceFileType.PACKAGE) {
+               if (!c.external) {
                        generate_type_declaration (c.type_reference, decl_space);
 
                        c.value.emit (this);