File tree 2 files changed +2
-6
lines changed
2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,9 @@ fn main() {
12
12
// to bindgen, and lets you build up options for
13
13
// the resulting bindings.
14
14
let bindings = bindgen:: Builder :: default ( )
15
- // The input header we would like to generate
16
- // bindings for.
17
15
. header ( "wrapper.h" )
18
- // Finish the builder and generate the bindings.
16
+ . hide_type ( "max_align_t" )
19
17
. generate ( )
20
- // Unwrap the Result and panic on failure.
21
18
. expect ( "Unable to generate bindings" ) ;
22
19
23
20
// Write the bindings to the $OUT_DIR/bindings.rs file.
Original file line number Diff line number Diff line change 7
7
#![ allow( non_camel_case_types) ]
8
8
#![ allow( non_snake_case) ]
9
9
10
-
11
- include ! ( "bindings.rs" ) ;
10
+ include ! ( concat!( env!( "OUT_DIR" ) , "/bindings.rs" ) ) ;
12
11
13
12
#[ macro_use]
14
13
extern crate lazy_static;
You can’t perform that action at this time.
0 commit comments