diff options
author | tersec <tersec@users.noreply.github.com> | 2023-03-02 04:51:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-02 05:51:54 +0100 |
commit | 612abda4f40b2a0fd8dd0e4ad119c4415b9c34cb (patch) | |
tree | 95d1775f1dcf07968f6de5ac1a2432b657d9e97e /lib/std/syncio.nim | |
parent | 9b5ae2b2eb2ba5aca219de109b03f1bb5637a777 (diff) | |
download | Nim-612abda4f40b2a0fd8dd0e4ad119c4415b9c34cb.tar.gz |
remove decades-deprecated Win32 API *A function support (#21315)
Diffstat (limited to 'lib/std/syncio.nim')
-rw-r--r-- | lib/std/syncio.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/syncio.nim b/lib/std/syncio.nim index 83b2d6d13..77d4fa04c 100644 --- a/lib/std/syncio.nim +++ b/lib/std/syncio.nim @@ -390,7 +390,7 @@ proc readLine*(f: File, line: var string): bool {.tags: [ReadIOEffect], proc c_memchr(s: pointer, c: cint, n: csize_t): pointer {. importc: "memchr", header: "<string.h>".} - when defined(windows) and not defined(useWinAnsi): + when defined(windows): proc readConsole(hConsoleInput: FileHandle, lpBuffer: pointer, nNumberOfCharsToRead: int32, lpNumberOfCharsRead: ptr int32, @@ -612,7 +612,7 @@ proc writeLine*[Ty](f: File, x: varargs[Ty, `$`]) {.inline, # interface to the C procs: -when defined(windows) and not defined(useWinAnsi): +when defined(windows): when defined(cpp): proc wfopen(filename, mode: WideCString): pointer {. importcpp: "_wfopen((const wchar_t*)#, (const wchar_t*)#)", nodecl.} |