diff options
author | Araq <rumpf_a@web.de> | 2012-01-29 19:12:48 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-01-29 19:12:48 +0100 |
commit | 4b952336325121be20557ecfb224a10dcaab49d0 (patch) | |
tree | e17bf3b0f1647107dae003818a2a2263748a1671 /compiler | |
parent | 1ba3dbc7595a40bdb68973d0863c904657ca28f6 (diff) | |
download | Nim-4b952336325121be20557ecfb224a10dcaab49d0.tar.gz |
fixes #98
Diffstat (limited to 'compiler')
-rwxr-xr-x | compiler/cgen.nim | 2 |
1 files changed, 1 insertions, 1 deletions
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)]) |