From a035055cc0affec487c677cf8802a00515744824 Mon Sep 17 00:00:00 2001 From: Donough Liu Date: Sat, 13 Apr 2024 16:02:26 +0800 Subject: [PATCH] Workaround `__mingw_ldbl_type_t` bindgen failure (#114) --- build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.rs b/build.rs index fed7a8b..2c8f0e7 100644 --- a/build.rs +++ b/build.rs @@ -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) },