From 9daab538cc7f0beb8d32a3c8500d1bfa0ead6492 Mon Sep 17 00:00:00 2001 From: Vivien Venuti Date: Thu, 1 Jul 2021 10:12:27 +0200 Subject: [PATCH] Fix type issue for compilation targeting windows --- ffmpeg-sys/build.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ffmpeg-sys/build.rs b/ffmpeg-sys/build.rs index 39950e17..6c7fbeb8 100644 --- a/ffmpeg-sys/build.rs +++ b/ffmpeg-sys/build.rs @@ -1076,6 +1076,9 @@ fn thread_main() { .ctypes_prefix("libc") // https://github.com/rust-lang/rust-bindgen/issues/550 .blocklist_type("max_align_t") + // Issue on aligned and packed struct. Related to: + // https://github.com/rust-lang/rust-bindgen/issues/1538 + .opaque_type("__mingw_ldbl_type_t") // these are never part of ffmpeg API .blocklist_function("_.*") // Rust doesn't support long double, and bindgen can't skip it