diff options
author | Kartik Saranathan <ksaranat@gmail.com> | 2017-11-07 17:48:03 -0500 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-11-07 23:48:03 +0100 |
commit | 06a63479295c4e3564de49c15d5877ca8db84196 (patch) | |
tree | 73dd62de8ae0b8713681fd53daaf525ae9deb11f | |
parent | d4cdd92bc90c20250b312fb11b8cb014a6204ce5 (diff) | |
download | Nim-06a63479295c4e3564de49c15d5877ca8db84196.tar.gz |
Fix incorrect signature for nimLoadProcs when using cpp backend (#6699)
-rw-r--r-- | compiler/cgen.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim index 2d181882a..2a979e8c5 100644 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -1153,7 +1153,7 @@ proc genInitCode(m: BModule) = for i, el in pairs(m.extensionLoaders): if el != nil: - let ex = "N_NIMCALL(void, nimLoadProcs$1)(void) {$2}$N$N" % + let ex = "NIM_EXTERNC N_NIMCALL(void, nimLoadProcs$1)(void) {$2}$N$N" % [(i.ord - '0'.ord).rope, el] add(m.s[cfsInitProc], ex) |