ソースを参照

Use libc::c_void for the opaque struct

We can use this because we don't ever want to access it.
Lucas Stadler 10 年 前
コミット
e5ac979f6a
共有1 個のファイルを変更した1 個の追加4 個の削除を含む
  1. 1 4
      rust/coffi/src/main.rs

+ 1 - 4
rust/coffi/src/main.rs

@ -6,12 +6,9 @@ extern {
6 6
    fn cos(d: f64) -> f64;
7 7
}
8 8
9
#[allow(non_camel_case_types)]
10
enum png_opaque {}
11
12 9
#[repr(C)]
13 10
struct png_image {
14
    opaque: *mut png_opaque,
11
    opaque: *mut libc::c_void,
15 12
    version: libc::uint32_t,
16 13
    width: libc::uint32_t,
17 14
    height: libc::uint32_t,