Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,12 @@ fn main() {
.iter()
.map(|include| format!("-I{}", include.to_string_lossy()));

let size_t_is_usize_value = if env::var("CARGO_FFMPEG_SYS_DISABLE_SIZE_T_IS_USIZE").is_ok() {
false
} else {
true
};

// The bindgen::Builder is the main entry point
// to bindgen, and lets you build up options for
// the resulting bindings.
Expand Down Expand Up @@ -1170,7 +1176,7 @@ fn main() {
})
.prepend_enum_name(false)
.derive_eq(true)
.size_t_is_usize(true)
.size_t_is_usize(size_t_is_usize_value)
.parse_callbacks(Box::new(Callbacks));

// The input headers we would like to generate
Expand Down