Skip to content

Commit

Permalink
Include c++ std
Browse files Browse the repository at this point in the history
  • Loading branch information
alisomay committed Nov 28, 2024
1 parent 71fb061 commit ff04728
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 @@ -241,9 +241,11 @@ fn main() {
.clang_arg(format!("-I{}", pd_source.to_str().unwrap()))
.clang_arg(format!("-DPD_FLOATSIZE={PD_FLOATSIZE}"))
.clang_arg("-DPD_INTERNAL=0") // Undefine PD_INTERNAL because it is not needed for bindings and cmake complains about it.
.clang_arg("-std=c11")
// Tell cargo to invalidate the built crate whenever any of the
// included header files changed.
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()));

#[cfg(target_os = "windows")]
let bindings = bindings_builder
.clang_arg(format!("-DWISH={}", WISH))
Expand Down

0 comments on commit ff04728

Please sign in to comment.