diff --git a/compiler/ccgtypes.nim b/compiler/ccgtypes.nim index 0c7e60eac9..c9cd3b1250 100644 --- a/compiler/ccgtypes.nim +++ b/compiler/ccgtypes.nim @@ -925,7 +925,7 @@ proc genProcHeader(m: BModule, prc: PSym): Rope = result.add "N_LIB_EXPORT " elif prc.typ.callConv == ccInline: result.add "static " - else: + elif {sfImportc, sfExportc} * prc.flags == {}: result.add "N_LIB_PRIVATE " var check = initIntSet() fillLoc(prc.loc, locProc, prc.ast[namePos], mangleName(m, prc), OnUnknown)