Skip to content

Commit

Permalink
bindgen: Exclude FB_* constants from generation
Browse files Browse the repository at this point in the history
I ran into this bug while compiling: rust-lang/rust-bindgen#687
  • Loading branch information
passy committed Sep 18, 2017
1 parent 5a4b22b commit fee80ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ fn main() {
let bindings = bindgen::Builder::default()
.no_unstable_rust()
.hide_type("max_align_t") // This fails `cargo test` so disable for now
.hide_type("FP_INFINITE")
.hide_type("FP_NAN")
.hide_type("FP_NORMAL")
.hide_type("FP_SUBNORMAL")
.hide_type("FP_ZERO")
.header("src/c/wrapper.h")
.generate()
.expect("Unable to generate bindings");
Expand Down

0 comments on commit fee80ea

Please sign in to comment.