Compare commits

...

1 commit

Author SHA1 Message Date
ee7
8cb8720b56 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
2021-01-15 17:07:13 +07:00
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.}