summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-04-08 17:17:54 +0200
committerAraq <rumpf_a@web.de>2019-04-08 17:17:54 +0200
commit430814fdb35a93a1c9e0045756d744253df613c5 (patch)
tree1684d4e4dd6518dff4758fe6be33ed28e20f9164 /lib/system
parent6efa7ecf188c3658828875a8c2426f7db3c6f0ac (diff)
downloadNim-430814fdb35a93a1c9e0045756d744253df613c5.tar.gz
make it compile with older nim versions
Diffstat (limited to 'lib/system')
-rw-r--r--lib/system/ansi_c.nim2
-rw-r--r--lib/system/memory.nim3
2 files changed, 5 insertions, 0 deletions
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: "<string.h>".}
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