From 17f62e4827fb94694799f091ab93c09628effef8 Mon Sep 17 00:00:00 2001 From: franchioping Date: Thu, 26 Mar 2026 23:16:31 +0000 Subject: [PATCH] add pragma once. fixes include issues --- build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/build.rs b/build.rs index 7449918..66e16ac 100644 --- a/build.rs +++ b/build.rs @@ -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);