summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authormiere43 <x.miere@gmail.com>2016-07-30 20:28:43 +0300
committermiere43 <x.miere@gmail.com>2016-07-30 20:28:43 +0300
commit70ea30d492ce038ae36dcceffece09c0b074721c (patch)
treeba6b1dde2169d4d41ca752b099e7128570fba16d /lib
parentf16140fc9599e3c12a3dfe912cac1819c04174d7 (diff)
downloadNim-70ea30d492ce038ae36dcceffece09c0b074721c.tar.gz
use appType instead of compileOption #4417
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 0c2cc2466..c2b45e01d 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -3671,7 +3671,7 @@ template closureScope*(body: untyped): untyped =
 when defined(nimconfig):
   include "system/nimscript"
 
-when defined(windows) and compileOption("app", "console"):
+when defined(windows) and appType == "console":
   proc setConsoleOutputCP(codepage: cint): cint {.stdcall, dynlib: "kernel32",
     importc: "SetConsoleOutputCP".}
   discard setConsoleOutputCP(65001) # 65001 - utf-8 codepage
\ No newline at end of file