diff options
author | miere43 <x.miere@gmail.com> | 2016-07-30 20:28:43 +0300 |
---|---|---|
committer | miere43 <x.miere@gmail.com> | 2016-07-30 20:28:43 +0300 |
commit | 70ea30d492ce038ae36dcceffece09c0b074721c (patch) | |
tree | ba6b1dde2169d4d41ca752b099e7128570fba16d /lib | |
parent | f16140fc9599e3c12a3dfe912cac1819c04174d7 (diff) | |
download | Nim-70ea30d492ce038ae36dcceffece09c0b074721c.tar.gz |
use appType instead of compileOption #4417
Diffstat (limited to 'lib')
-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 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 |