Skip to content

Commit

Permalink
Replace build.rs with link attributes (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Feb 17, 2021
1 parent 9b2d558 commit c4a0004
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
14 changes: 0 additions & 14 deletions build.rs

This file was deleted.

1 change: 1 addition & 0 deletions src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use core::{ffi::c_void, num::NonZeroU32, ptr};

const BCRYPT_USE_SYSTEM_PREFERRED_RNG: u32 = 0x00000002;

#[link(name = "bcrypt")]
extern "system" {
fn BCryptGenRandom(
hAlgorithm: *mut c_void,
Expand Down

0 comments on commit c4a0004

Please sign in to comment.