fixes macos

This commit is contained in:
ringabout
2025-01-08 19:50:25 +08:00
parent 67d80c4971
commit c1f99aa362

View File

@@ -238,7 +238,7 @@ elif defined(ios) or defined(macosx):
const errSecSuccess = 0 ## No error.
type
SecRandom {.importc: "struct __SecRandom".} = object
SecRandom {.importc: "struct __SecRandom", header: "<Security/SecRandom.h>".} = object
SecRandomRef = ptr SecRandom
## An abstract Core Foundation-type object containing information about a random number generator.