Selaa lähdekoodia

Use c_uint instead of uint32_t

It's closer to `unsigned int`, which it is declared as in the libpng
headers.
Lucas Stadler 10 vuotta sitten
vanhempi
commit
e158a91301
1 muutettua tiedostoa jossa 7 lisäystä ja 7 poistoa
  1. 7 7
      rust/coffi/src/main.rs

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

@ -9,13 +9,13 @@ extern {
9 9
#[repr(C)]
10 10
struct png_image {
11 11
    opaque: *mut libc::c_void,
12
    version: libc::uint32_t,
13
    width: libc::uint32_t,
14
    height: libc::uint32_t,
15
    format: libc::uint32_t,
16
    flags: libc::uint32_t,
17
    colormap_entries: libc::uint32_t,
18
    warning_or_error:  libc::uint32_t,
12
    version: libc::c_uint,
13
    width: libc::c_uint,
14
    height: libc::c_uint,
15
    format: libc::c_uint,
16
    flags: libc::c_uint,
17
    colormap_entries: libc::c_uint,
18
    warning_or_error:  libc::c_uint,
19 19
    message: [libc::c_char; 64],
20 20
}
21 21