diff options
Diffstat (limited to 'src/ir/context.rs')
-rw-r--r-- | src/ir/context.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ir/context.rs b/src/ir/context.rs index 7b4e9b6a..b14d963b 100644 --- a/src/ir/context.rs +++ b/src/ir/context.rs @@ -261,7 +261,7 @@ impl<'ctx> BindgenContext<'ctx> { effective_target = Some(HOST_TARGET.to_owned()); } - // Mac os and Win32 need __ for mangled symbols but rust will automatically + // Mac os, iOS and Win32 need __ for mangled symbols but rust will automatically // prepend the extra _. // // We need to make sure that we don't include __ because rust will turn into @@ -269,6 +269,7 @@ impl<'ctx> BindgenContext<'ctx> { let effective_target = effective_target.unwrap(); let needs_mangling_hack = effective_target.contains("darwin") || + effective_target.contains("ios") || effective_target == "i686-pc-win32"; let root_module = Self::build_root_module(ItemId(0)); |