make it compile with older nim versions

This commit is contained in:
Araq 2019-04-08 17:17:54 +02:00
commit 430814fdb3
2 changed files with 5 additions and 0 deletions

View file

@ -1,5 +1,8 @@
const useLibC = not defined(nimNoLibc)
when not defined(nimHasHotCodeReloading):
{.pragma: nonReloadable.}
when useLibC:
import ansi_c