Skip to content

Commit a9effbe

Browse files
authored
Merge pull request #4 from severinpolo/main
Compilation error for `wasm32-unknown-unknown` target -> removed libc dependency and used core::ffi c-types
2 parents bff76fe + e39fb3a commit a9effbe

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,3 @@ repository = "https://github.com/blas-lapack-rs/cblas-sys"
1111
readme = "README.md"
1212
categories = ["external-ffi-bindings", "science"]
1313
keywords = ["linear-algebra"]
14-
15-
[dependencies]
16-
libc = "0.2"

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
#![allow(non_camel_case_types)]
99
#![no_std]
1010

11-
use libc::{c_char, c_double, c_float, c_int};
11+
use core::ffi::{c_char, c_double, c_float, c_int};
1212

1313
/// A complex number with 64-bit parts.
1414
#[allow(bad_style)]
15-
pub type c_double_complex = [libc::c_double; 2];
15+
pub type c_double_complex = [c_double; 2];
1616

1717
/// A complex number with 32-bit parts.
1818
#[allow(bad_style)]
19-
pub type c_float_complex = [libc::c_float; 2];
19+
pub type c_float_complex = [c_float; 2];
2020

2121
pub type CBLAS_INDEX = c_int;
2222

0 commit comments

Comments
 (0)