From 430814fdb35a93a1c9e0045756d744253df613c5 Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 8 Apr 2019 17:17:54 +0200 Subject: make it compile with older nim versions --- lib/system/ansi_c.nim | 2 ++ lib/system/memory.nim | 3 +++ 2 files changed, 5 insertions(+) (limited to 'lib/system') diff --git a/lib/system/ansi_c.nim b/lib/system/ansi_c.nim index 9e36aafdc..23828af91 100644 --- a/lib/system/ansi_c.nim +++ b/lib/system/ansi_c.nim @@ -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: "".} diff --git a/lib/system/memory.nim b/lib/system/memory.nim index 25c803360..acfc7dc5e 100644 --- a/lib/system/memory.nim +++ b/lib/system/memory.nim @@ -1,5 +1,8 @@ const useLibC = not defined(nimNoLibc) +when not defined(nimHasHotCodeReloading): + {.pragma: nonReloadable.} + when useLibC: import ansi_c -- cgit 1.4.1-2-gfad0 tion. (mirror)ahoang <ahoang@tilde.institute>
summary refs log blame commit diff stats
blob: a3d1730cda8290657e0b838ab2d71f33465c6a40 (plain) (tree)