Skip to content

Commit

Permalink
fixes #13607
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq committed Mar 10, 2020
1 parent 9e2bce2 commit 3b7b017
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/windows/winlean.nim
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,10 @@ const

CREATE_NO_WINDOW* = 0x08000000'i32

when useWinUnicode:
proc getVersionExW*(lpVersionInfo: ptr OSVERSIONINFO): WINBOOL {.
stdcall, dynlib: "kernel32", importc: "GetVersionExW", sideEffect.}
else:
proc getVersionExA*(lpVersionInfo: ptr OSVERSIONINFO): WINBOOL {.
stdcall, dynlib: "kernel32", importc: "GetVersionExA", sideEffect.}
proc getVersionExW*(lpVersionInfo: ptr OSVERSIONINFO): WINBOOL {.
stdcall, dynlib: "kernel32", importc: "GetVersionExW", sideEffect.}
proc getVersionExA*(lpVersionInfo: ptr OSVERSIONINFO): WINBOOL {.
stdcall, dynlib: "kernel32", importc: "GetVersionExA", sideEffect.}

proc getVersion*(): DWORD {.stdcall, dynlib: "kernel32", importc: "GetVersion", sideEffect.}

Expand Down

0 comments on commit 3b7b017

Please sign in to comment.