Rantanen / intercom

Object based cross-language FFI for Rust
MIT License
63 stars 7 forks source link

C++ GUID and IID are not compatible with each other in Linux #176

Open Rantanen opened 4 years ago

Rantanen commented 4 years ago

In Windows these are typedef'd together so code that defines a GUID and passes that in as IID compiles just fine. However on non-Windows platforms that fails as _GUID and _IID are two separate structs.

We should either define GUID and IID separately for Windows or use typedef on non-Windows platforms. Given the benefits of having intercom::GUID and intercom::IID be compatible with Windows GUID type, we should probably just typedef these on non-Windows platforms.