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]
|
[Package]
|
||||||
name: "uuids"
|
name: "uuids"
|
||||||
version: "0.1.10"
|
version: "0.1.11"
|
||||||
author: "Xored Software, Inc."
|
author: "Xored Software, Inc."
|
||||||
description: "UUID library"
|
description: "UUID library"
|
||||||
license: "MIT"
|
license: "MIT"
|
||||||
|
|
|
||||||
|
|
@ -16,16 +16,16 @@ when defined(windows):
|
||||||
proc CryptAcquireContext(
|
proc CryptAcquireContext(
|
||||||
phProv: ptr HCRYPTPROV, pszContainer: WideCString,
|
phProv: ptr HCRYPTPROV, pszContainer: WideCString,
|
||||||
pszProvider: WideCString, dwProvType: DWORD, dwFlags: DWORD
|
pszProvider: WideCString, dwProvType: DWORD, dwFlags: DWORD
|
||||||
): WinBool {.importc: "CryptAcquireContextW".}
|
): WINBOOL {.importc: "CryptAcquireContextW".}
|
||||||
else:
|
else:
|
||||||
proc CryptAcquireContext(
|
proc CryptAcquireContext(
|
||||||
phProv: ptr HCRYPTPROV, pszContainer: cstring, pszProvider: cstring,
|
phProv: ptr HCRYPTPROV, pszContainer: cstring, pszProvider: cstring,
|
||||||
dwProvType: DWORD, dwFlags: DWORD
|
dwProvType: DWORD, dwFlags: DWORD
|
||||||
): WinBool {.importc: "CryptAcquireContextA".}
|
): WINBOOL {.importc: "CryptAcquireContextA".}
|
||||||
|
|
||||||
proc CryptGenRandom(
|
proc CryptGenRandom(
|
||||||
hProv: HCRYPTPROV, dwLen: DWORD, pbBuffer: pointer
|
hProv: HCRYPTPROV, dwLen: DWORD, pbBuffer: pointer
|
||||||
): WinBool {.importc: "CryptGenRandom".}
|
): WINBOOL {.importc: "CryptGenRandom".}
|
||||||
|
|
||||||
{.pop.}
|
{.pop.}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue