From 7dcca78186bf914f2ae199a85895d821c8506b9b Mon Sep 17 00:00:00 2001 From: usamoi Date: Tue, 25 Feb 2025 23:15:04 +0800 Subject: [PATCH] apply same rule to C and C-unwind in names_will_be_identical_after_mangling --- bindgen/codegen/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindgen/codegen/mod.rs b/bindgen/codegen/mod.rs index f5518e432d..cddd74faa2 100644 --- a/bindgen/codegen/mod.rs +++ b/bindgen/codegen/mod.rs @@ -5863,7 +5863,7 @@ pub(crate) mod utils { let mangled_name = mangled_name.as_bytes(); let (mangling_prefix, expect_suffix) = match call_conv { - Some(ClangAbi::Known(Abi::C)) | + Some(ClangAbi::Known(Abi::C | Abi::CUnwind)) | // None is the case for global variables None => { (b'_', false)