浏览代码

Fixed extern class references not #including decl file.

Mark Sibly 9 年之前
父节点
当前提交
cc722e8273
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/mx2cc/translator.monkey2

+ 1 - 0
src/mx2cc/translator.monkey2

@@ -414,6 +414,7 @@ Class Translator
 	
 		Local ctype:=TCast<ClassType>( type )
 		If ctype
+			If ctype.cdecl.IsExtern Uses( ctype.transFile ) ; return
 			If IsStruct( ctype ) Uses( ctype ) ; Return
 			If AddRef( ctype ) Return
 			_refsTypes.Push( ctype )