cowsql / raft

Asynchronous C implementation of the Raft consensus protocol
https://raft.readthedocs.io
Other
45 stars 6 forks source link

C++ compiler reject sizeof of anonymous structs #186

Closed buschulte closed 3 months ago

buschulte commented 3 months ago

when trying to include the raft.h with extern "C" it's not working because the do not allow sizeof checks with non-named structs. used for compatibility checks.

freeekanayaka commented 3 months ago

Looks good to me, thanks!