fix os.nim for Windows

This commit is contained in:
Andreas Rumpf 2017-09-01 11:24:30 +02:00
commit dcc72ea7a9

View file

@ -9,6 +9,9 @@ when not defined(nimscript):
proc c_strerror(errnum: cint): cstring {.
importc: "strerror", header: "<string.h>".}
when defined(windows):
import winlean
proc osErrorMsg*(): string {.rtl, extern: "nos$1", deprecated.} =
## Retrieves the operating system's error flag, ``errno``.
## On Windows ``GetLastError`` is checked before ``errno``.