[vala] codegen: Fix external constants



commit f29e678631ffb5f30ed3c5eed05e2545ca07eef0
Author: Jürg Billeter <j bitron ch>
Date:   Fri Sep 10 08:33:52 2010 +0200

    codegen: Fix external constants

 codegen/valaccodebasemodule.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index 837aa1d..454e94c 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]