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