I'm trying to build a Swift app on Linux (Fedora 29) using a Wayland desktop. I need to pass a C struct declared externally as
to a C function declared as:
However if I try to call the function as:
I get the error:
Removing the & gives the (expected) error:
If I try to create an UnsafePointer to the struct to pass to the function as follows:
I get a compiler crash (on both the Fedora-built Swift 4.2.1 and my own build from dev HEAD):
Is there any way to pass these externally defined structs to a function which expects a const struct pointer?