summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-06-27 14:46:38 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-06-27 14:46:38 +0200
commitfb878330a963da5a6288021fe15b337c29639ace (patch)
treec594fdb8c12bef548ca0a06bd09b98500b6180b5 /lib
parent135fdde6a9108591fa4c921bd0ad37179b10cc02 (diff)
downloadNim-fb878330a963da5a6288021fe15b337c29639ace.tar.gz
fixes #11445
Diffstat (limited to 'lib')
-rw-r--r--lib/system.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 2044f8056..f7a1c9d10 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -3416,7 +3416,7 @@ template newException*(exceptn: typedesc, message: string;
   e.parent = parentException
   e
 
-when hostOS == "standalone":
+when defined(nogc):
   proc nimToCStringConv(s: NimString): cstring {.compilerProc, inline.} =
     if s == nil or s.len == 0: result = cstring""
     else: result = cstring(addr s.data)