From e8f134822b35d36974c3458cbd4e53e41d8c8e98 Mon Sep 17 00:00:00 2001 From: Henrik Kubitza Date: Mon, 18 Aug 2025 09:39:57 +0200 Subject: [PATCH] Fixed generation of C14n bindings --- build.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.rs b/build.rs index f80ca3644..d8d2fef82 100644 --- a/build.rs +++ b/build.rs @@ -71,7 +71,7 @@ fn generate_bindings(header_dirs: Vec, output_path: &Path) { // invalidate build as soon as the wrapper changes .parse_callbacks(Box::new(bindgen::CargoCallbacks::new())) .layout_tests(true) - .clang_args(&["-DPKG-CONFIG"]) + .clang_args(&["-DPKG-CONFIG", "-DLIBXML_C14N_ENABLED", "-DLIBXML_OUTPUT_ENABLED"]) .clang_args( header_dirs.iter() .map(|dir| format!("-I{}", dir.display())) @@ -149,4 +149,4 @@ mod vcpkg_dep { // (or should this panic?) String::from("2.13.5") } -} \ No newline at end of file +}