add bcrypt as windows dependency
Some checks failed
Build and Deploy / package-dist (push) Has been cancelled
Build and Deploy / deploy-itch (push) Has been cancelled
Build and Deploy / deploy-gitea (push) Has been cancelled
Build and Deploy / build-linux (push) Has been cancelled
Build and Deploy / build-windows (CLANG64) (push) Has been cancelled
Some checks failed
Build and Deploy / package-dist (push) Has been cancelled
Build and Deploy / deploy-itch (push) Has been cancelled
Build and Deploy / deploy-gitea (push) Has been cancelled
Build and Deploy / build-linux (push) Has been cancelled
Build and Deploy / build-windows (CLANG64) (push) Has been cancelled
This commit is contained in:
@@ -98,6 +98,7 @@ if host_machine.system() == 'windows'
|
||||
deps += cc.find_library('imm32')
|
||||
deps += cc.find_library('version')
|
||||
deps += cc.find_library('cfgmgr32')
|
||||
deps += cc.find_library('bcrypt')
|
||||
sdl3_opts.add_cmake_defines({'HAVE_ISINF': '1'}) # Hack for MSYS2
|
||||
link += '-static'
|
||||
endif
|
||||
|
||||
@@ -6,20 +6,6 @@
|
||||
|
||||
#include "monocypher.h"
|
||||
|
||||
// randombytes.c - Minimal cross-platform CSPRNG shim (single file)
|
||||
/*
|
||||
Usage:
|
||||
#include "randombytes.c"
|
||||
|
||||
int main() {
|
||||
uint8_t buffer[32];
|
||||
if (randombytes(buffer, sizeof(buffer)) != 0) {
|
||||
// handle error
|
||||
}
|
||||
// buffer now has 32 cryptographically secure random bytes
|
||||
}
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user