From 06a63479295c4e3564de49c15d5877ca8db84196 Mon Sep 17 00:00:00 2001 From: Kartik Saranathan Date: Tue, 7 Nov 2017 17:48:03 -0500 Subject: [PATCH] Fix incorrect signature for nimLoadProcs when using cpp backend (#6699) --- compiler/cgen.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/cgen.nim b/compiler/cgen.nim index 2d181882a6..2a979e8c52 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)