From ff04728aa780743d08bf26783679e153f663f366 Mon Sep 17 00:00:00 2001 From: Ali Somay Date: Thu, 28 Nov 2024 16:53:07 +0100 Subject: [PATCH] Include c++ std --- build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.rs b/build.rs index 42d03c0..dbfba09 100644 --- a/build.rs +++ b/build.rs @@ -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))