From fee80ea16f5fa9e336805b69263b266ea8211cd2 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Mon, 18 Sep 2017 12:50:23 +0100 Subject: [PATCH] bindgen: Exclude FB_* constants from generation I ran into this bug while compiling: https://github.com/rust-lang-nursery/rust-bindgen/issues/687 --- build.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.rs b/build.rs index 3e4509d..f58dbd5 100644 --- a/build.rs +++ b/build.rs @@ -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");