[solved] Swift package that imports both C and C++ into Swift module fails to compile

As per the instructions in this thread, I moved the offending #include out of the extern "C" block:

# include <stdint.h>

#if defined (__cplusplus)
extern "C" {
#endif

Now it works. Sorry for not researching this better before asking.

2 Likes