tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: firefox -> 63.0 WIP diff
I figured out the rust bindgen problem.
#undef uintptr_t in the same file gets it to know it's usize.
fly@planets ~> cat test-right.h
#include <stdint.h>
#undef uintptr_t
extern uintptr_t should_be_usize;
fly@planets ~> ~/.cargo/bin/bindgen test-right.h
...
extern "C" {
#[link_name = "\u{1}should_be_usize"]
pub static mut should_be_usize: usize;
}
fly@planets ~> cat test-wrong.h
#include <stdint.h>
extern uintptr_t should_be_usize;
fly@planets ~> ~/.cargo/bin/bindgen test-wrong.h
..
pub type __uintptr_t = ::std::os::raw::c_ulong;
..
extern "C" {
#[link_name = "\u{1}should_be_usize"]
pub static mut should_be_usize: __uintptr_t;
}
Home |
Main Index |
Thread Index |
Old Index