Skip to content

Commit 6f42e18

Browse files
authored
Merge pull request #14 from blas-lapack-rs/size_t
Use size_t from libc
2 parents b655927 + 9a514cf commit 6f42e18

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lapack-sys"
3-
version = "0.13.0"
3+
version = "0.14.0"
44
license = "Apache-2.0/MIT"
55
authors = [
66
"Andrew Straw <[email protected]>",

bin/generate.sh

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ set -eux
99
# preserve no_std, it is truncated to `c_char` and gets taken from `libc`.
1010
bindgen --whitelist-function='^.*_$' --use-core bin/wrapper.h \
1111
| sed -e 's/::std::os::raw:://g' \
12+
| sed -e '/__darwin_size_t/d' \
1213
> src/lapack.rs
1314

1415
rustfmt src/lapack.rs

src/lapack.rs

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ pub struct __BindgenComplex<T> {
66
pub re: T,
77
pub im: T,
88
}
9-
pub type __darwin_size_t = c_ulong;
10-
pub type size_t = __darwin_size_t;
119
pub type lapack_float_return = f32;
1210
pub type LAPACK_S_SELECT2 =
1311
::core::option::Option<unsafe extern "C" fn(arg1: *const f32, arg2: *const f32) -> c_int>;

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
extern crate libc;
1212

13-
use libc::{c_char, c_int, c_ulong};
13+
use libc::{c_char, c_int, size_t};
1414

1515
/// A complex number with 64-bit parts.
1616
pub type c_double_complex = __BindgenComplex<f64>;

0 commit comments

Comments
 (0)