From b018ddca033a04518ce41f2030c200c76f82aded Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Fri, 1 Sep 2017 15:55:36 +0200 Subject: [PATCH] another attempt to make travis and appveyor green again --- lib/pure/includes/osenv.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pure/includes/osenv.nim b/lib/pure/includes/osenv.nim index 63500c5fa5..8d2fc235a3 100644 --- a/lib/pure/includes/osenv.nim +++ b/lib/pure/includes/osenv.nim @@ -15,7 +15,7 @@ var envComputed {.threadvar.}: bool environment {.threadvar.}: seq[string] -when defined(windows): +when defined(windows) and not defined(nimscript): # because we support Windows GUI applications, things get really # messy here... when useWinUnicode: @@ -58,7 +58,7 @@ when defined(windows): else: const - useNSGetEnviron = defined(macosx) and not defined(ios) + useNSGetEnviron = (defined(macosx) and not defined(ios)) or defined(nimscript) when useNSGetEnviron: # From the manual: @@ -137,7 +137,7 @@ proc putEnv*(key, val: string) {.tags: [WriteEnvEffect].} = else: add environment, (key & '=' & val) indx = high(environment) - when defined(windows): + when defined(windows) and not defined(nimscript): when useWinUnicode: var k = newWideCString(key) var v = newWideCString(val)