make hidden visibility the default for Unix

This commit is contained in:
Araq 2017-12-13 14:37:19 +01:00
commit c35788b97c
2 changed files with 4 additions and 0 deletions

View file

@ -925,6 +925,8 @@ proc genProcHeader(m: BModule, prc: PSym): Rope =
result.add "N_LIB_EXPORT "
elif prc.typ.callConv == ccInline:
result.add "static "
else:
result.add "N_LIB_PRIVATE "
var check = initIntSet()
fillLoc(prc.loc, locProc, prc.ast[namePos], mangleName(m, prc), OnUnknown)
genProcParams(m, prc.typ, rettype, params, check)