summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Saranathan <ksaranat@gmail.com>2017-11-07 17:48:03 -0500
committerAndreas Rumpf <rumpf_a@web.de>2017-11-07 23:48:03 +0100
commit06a63479295c4e3564de49c15d5877ca8db84196 (patch)
tree73dd62de8ae0b8713681fd53daaf525ae9deb11f
parentd4cdd92bc90c20250b312fb11b8cb014a6204ce5 (diff)
downloadNim-06a63479295c4e3564de49c15d5877ca8db84196.tar.gz
Fix incorrect signature for nimLoadProcs when using cpp backend (#6699)
-rw-r--r--compiler/cgen.nim2
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)