Jelajahi Sumber

Fixed extern class references not #including decl file.

Mark Sibly 9 tahun lalu
induk
melakukan
cc722e8273
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  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 )