This commit is contained in:
Araq 2012-01-29 19:12:48 +01:00
commit 4b95233632
3 changed files with 4 additions and 4 deletions

View file

@ -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)])