When using "in_addr" in Swift, enabling C++ interoperability, and importing the generated Swift.h header into a C++ file, this error gets produced from the Swift.h file.
Swift:
import Darwin
public enum MyEnum {
case value(in_addr)
}
C++
#include <netinet/in.h>
#include "MyProject-Swift.h"
The generated code is using Darwin as a namespace but I'm unable to to resolve this error. This is from Xcode 16.1. Any suggestions?