Skip to content

Fails when Swift C++ interop is turned on #333

@aDifferentJT

Description

@aDifferentJT

The generated C headers do not include guards to add extern "C" if compiled as C++, which means that I had to turn off Swift C++ interop, which is a shame. It'd be nice if we added these into the generated headers to enable C++ compatibility.

#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions