1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#![allow(non_camel_case_types, non_upper_case_globals)] // Allowed this because some bindgen tests looks like // it tries to dereference null pointers but actually // it is not so. #![cfg_attr(test, allow(deref_nullptr))] extern crate libc; #[cfg(feature = "gen")] include!(concat!(env!("OUT_DIR"), "/gen.rs")); #[cfg(not(feature = "gen"))] include!(concat!( "platforms/", env!("GBM_SYS_BINDINGS_PATH"), "/gen.rs" )); #[link(name = "gbm")] extern "C" {}