Skip to content

Undesired link_name attributes generated #1221

@waywardmonkeys

Description

@waywardmonkeys

Input C/C++ Header

int foo(void);

Bindgen Invocation

$ bindgen input.h

Actual Results

/* automatically generated by rust-bindgen */

extern "C" {
    #[link_name = "\u{1}_foo"]
    pub fn foo() -> ::std::os::raw::c_int;
}

I would like the output to not contain the link_name attribute as it shouldn't be necessary here.

I'm on macOS, so all symbols get the _ prefix ...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions