Fix error with styleCheck
Before this commit, running `nim c --styleCheck:error` on a file
that imports the `uuids` package would produce an error on Windows.
`WINBOOL` is defined here:
52cf728001/lib/windows/winlean.nim (L33)
Fixes: #5
This commit is contained in:
parent
c5039c1cc6
commit
8cb8720b56
2 changed files with 4 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
[Package]
|
||||
name: "uuids"
|
||||
version: "0.1.10"
|
||||
version: "0.1.11"
|
||||
author: "Xored Software, Inc."
|
||||
description: "UUID library"
|
||||
license: "MIT"
|
||||
|
|
|
|||
|
|
@ -16,16 +16,16 @@ when defined(windows):
|
|||
proc CryptAcquireContext(
|
||||
phProv: ptr HCRYPTPROV, pszContainer: WideCString,
|
||||
pszProvider: WideCString, dwProvType: DWORD, dwFlags: DWORD
|
||||
): WinBool {.importc: "CryptAcquireContextW".}
|
||||
): WINBOOL {.importc: "CryptAcquireContextW".}
|
||||
else:
|
||||
proc CryptAcquireContext(
|
||||
phProv: ptr HCRYPTPROV, pszContainer: cstring, pszProvider: cstring,
|
||||
dwProvType: DWORD, dwFlags: DWORD
|
||||
): WinBool {.importc: "CryptAcquireContextA".}
|
||||
): WINBOOL {.importc: "CryptAcquireContextA".}
|
||||
|
||||
proc CryptGenRandom(
|
||||
hProv: HCRYPTPROV, dwLen: DWORD, pbBuffer: pointer
|
||||
): WinBool {.importc: "CryptGenRandom".}
|
||||
): WINBOOL {.importc: "CryptGenRandom".}
|
||||
|
||||
{.pop.}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue