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:
ee7 2021-01-15 07:30:01 +01:00 committed by Ruslan Mustakov
commit 8cb8720b56
2 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
[Package]
name: "uuids"
version: "0.1.10"
version: "0.1.11"
author: "Xored Software, Inc."
description: "UUID library"
license: "MIT"

View file

@ -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.}