Explorar el Código

Fix the opaque type

The correct way seems to be to use an empty enum, which should "do the
right thing".
Lucas Stadler %!s(int64=11) %!d(string=hace) años
padre
commit
a71e0aac9f
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      rust/coffi/src/main.rs

+ 2 - 2
rust/coffi/src/main.rs

6
    fn cos(d: f64) -> f64;
6
    fn cos(d: f64) -> f64;
7
}
7
}
8
8
9
#[repr(C)]
10
struct png_opaque;
9
#[allow(non_camel_case_types)]
10
enum png_opaque {}
11
11
12
#[repr(C)]
12
#[repr(C)]
13
struct png_image {
13
struct png_image {