From 4b952336325121be20557ecfb224a10dcaab49d0 Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 29 Jan 2012 19:12:48 +0100 Subject: fixes #98 --- compiler/cgen.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler') diff --git a/compiler/cgen.nim b/compiler/cgen.nim index 5de2481ed..eb3e58a98 100755 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -641,7 +641,7 @@ proc genProcPrototype(m: BModule, sym: PSym) = useHeader(m, sym) if lfNoDecl in sym.loc.Flags: return if lfDynamicLib in sym.loc.Flags: - if sym.owner.id != m.module.id and + if getModule(sym).id != m.module.id and not ContainsOrIncl(m.declaredThings, sym.id): appf(m.s[cfsVars], "extern $1 $2;$n", [getTypeDesc(m, sym.loc.t), mangleDynLibProc(sym)]) -- cgit 1.4.1-2-gfad0