diff options
-rw-r--r-- | lib/system.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system.nim b/lib/system.nim index f7a1c9d10..61978e23c 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -3416,7 +3416,7 @@ template newException*(exceptn: typedesc, message: string; e.parent = parentException e -when defined(nogc): +when hostOS == "standalone" and defined(nogc): proc nimToCStringConv(s: NimString): cstring {.compilerProc, inline.} = if s == nil or s.len == 0: result = cstring"" else: result = cstring(addr s.data) |