use appType instead of compileOption #4417
This commit is contained in:
parent
f16140fc95
commit
70ea30d492
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue