Skip to content

Commit

Permalink
Define PD_INTERNAL as true
Browse files Browse the repository at this point in the history
  • Loading branch information
alisomay committed Nov 28, 2024
1 parent ff04728 commit 8b6b103
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,7 @@ fn main() {
.clang_arg(format!("-I{}", libpd_wrapper_dir.to_str().unwrap()))
.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")
.clang_arg("-DPD_INTERNAL=1")
// Tell cargo to invalidate the built crate whenever any of the
// included header files changed.
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()));
Expand Down

0 comments on commit 8b6b103

Please sign in to comment.