Fix *nix compilation problem.

This commit is contained in:
cheatfate 2020-10-15 00:10:19 +03:00
parent 1746bc0095
commit 8d87ba3e05
No known key found for this signature in database
GPG Key ID: 46ADD633A7201F95
1 changed files with 2 additions and 2 deletions

View File

@ -414,8 +414,8 @@ when defined(posix):
ps: ptr Mbstate): csize_t {.
importc, header: "<wchar.h>".}
proc mbstowcs*[A: Bytes, B: Wides](t: typedesc[B],
input: openarray[A]): UResult[seq[B]] =
proc mbstowcs*[A: Bytes, B: Wides32](t: typedesc[B],
input: openarray[A]): UResult[seq[B]] =
## Converts multibyte encoded string to OS specific wide char string.
##
## Note, that `input` should be `0` terminated.