Skip to content

Commit

Permalink
Workaround __mingw_ldbl_type_t bindgen failure (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldm0 authored Apr 13, 2024
1 parent 6823cea commit a035055
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ fn generate_bindings(ffmpeg_include_dir: &Path, headers: &[PathBuf]) -> Bindings
.parse_callbacks(Box::new(filter_callback))
// Add clang path, for `#include` header finding in bindgen process.
.clang_arg(format!("-I{}", ffmpeg_include_dir))
// Workaround: https://github.com/rust-lang/rust-bindgen/issues/2159
.blocklist_type("__mingw_ldbl_type_t")
// Stop bindgen from prefixing enums
.prepend_enum_name(false)
},
Expand Down

0 comments on commit a035055

Please sign in to comment.