mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 21:40:32 +00:00
make it compile with older nim versions
This commit is contained in:
@@ -12,6 +12,8 @@
|
||||
# All symbols are prefixed with 'c_' to avoid ambiguities
|
||||
|
||||
{.push hints:off, stack_trace: off, profiler: off.}
|
||||
when not defined(nimHasHotCodeReloading):
|
||||
{.pragma: nonReloadable.}
|
||||
|
||||
proc c_memchr*(s: pointer, c: cint, n: csize): pointer {.
|
||||
importc: "memchr", header: "<string.h>".}
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
const useLibC = not defined(nimNoLibc)
|
||||
|
||||
when not defined(nimHasHotCodeReloading):
|
||||
{.pragma: nonReloadable.}
|
||||
|
||||
when useLibC:
|
||||
import ansi_c
|
||||
|
||||
|
||||
Reference in New Issue
Block a user