add pragma once. fixes include issues

This commit is contained in:
franchioping 2026-03-26 23:16:31 +00:00
parent 3ad9eb42b9
commit 17f62e4827
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ fn run_cbindgen(cargo_dir: &Path, target_dir: &Path) {
cbindgen::Builder::new()
.with_crate(cargo_dir)
.with_language(cbindgen::Language::Cxx)
.with_pragma_once(true)
.generate()
.expect("Unable to generate bindings")
.write_to_file(&out);