File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ pub fn mcu_32_bytes(out: &mut [u8; 32]) {
17
17
unsafe { bitbox02_sys:: random_32_bytes_mcu ( out. as_mut_ptr ( ) ) }
18
18
}
19
19
20
- #[ cfg( target_arch = "x86_64" ) ]
20
+ #[ cfg( not ( target_arch = "arm" ) ) ]
21
21
pub fn mcu_32_bytes ( out : & mut [ u8 ; 32 ] ) {
22
22
extern "C" {
23
23
fn rand ( ) -> util:: c_types:: c_int ;
Original file line number Diff line number Diff line change @@ -27,16 +27,22 @@ pub type c_int = i32;
27
27
28
28
#[ cfg( target_arch = "x86_64" ) ]
29
29
pub type c_uint = u64 ;
30
+ #[ cfg( target_arch = "aarch64" ) ]
31
+ pub type c_uint = u64 ;
30
32
#[ cfg( target_arch = "arm" ) ]
31
33
pub type c_uint = u32 ;
32
34
33
35
#[ cfg( target_arch = "x86_64" ) ]
34
36
pub type c_long = i64 ;
37
+ #[ cfg( target_arch = "aarch64" ) ]
38
+ pub type c_long = i64 ;
35
39
#[ cfg( target_arch = "arm" ) ]
36
40
pub type c_long = i32 ;
37
41
38
42
#[ cfg( target_arch = "x86_64" ) ]
39
43
pub type c_ulong = u64 ;
44
+ #[ cfg( target_arch = "aarch64" ) ]
45
+ pub type c_ulong = u64 ;
40
46
#[ cfg( target_arch = "arm" ) ]
41
47
pub type c_ulong = u32 ;
42
48
You can’t perform that action at this time.
0 commit comments